tyiannak / multimodal_movie_analysis

A Python Library for Multimodal Analysis of Movies and Content-based Movie Recommendation
25 stars 8 forks source link

Plot roc and precision recall curves #43 #44

Open apoman38 opened 3 years ago

apoman38 commented 3 years ago

What this PR does: 3 new functions were added in the train.py file.

1) rep_roc_pr_curves(). Prepare data for plotting roc and precision-recall curves. Specifically, in the function, folders are created where the plots will be stored, and one hot encoding is performed on the labeled data. 2) plot_roc_curve(). Plot roc curves. 3) plot_pre_rec_curve(). Plot precision-recall curves.

How to QA: Run the train.py file (python3 train.py -v dataset/Aerial dataset/Tilt SVM) and make sure that created two new folders where the plots are saved.