tyiannak / multimodal_movie_analysis

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

Plot features histograms #33 #36

Closed apoman38 closed 3 years ago

tyiannak commented 3 years ago
  1. @apoman38 please resolve any conflicts with master before sending a pull request
  2. always describe what the PR is about: what it does, how should one do the QA etc
  3. make script names more meaningful: train.py should train a model and feature_selection should do feature selection.
  4. Add comments and docstrings to explain your functions.
apoman38 commented 3 years ago

Sorry for my carelessness and for the wrong implementation of the task. I will be more specific about what was implemented.

Initially, in the analyze_visual.py file in the dir_process_video() function, I added to save and return the names of the features. Then in train.py, it was added to feature_extraction() to store the names of the features in dictionary format. A new file named feature_selection.py has been created which plots the feature histograms.

Please check if the feature_selection.py plots in the right form the histograms and let me know if changes need to be made.

apoman38 commented 3 years ago

Please run the feature_selection.py with the command python3 feature_selection.py -v dataset/Aerial dataset/Tilt where dataset/Aerial, dataset/Tilt the directories of video files. A file named report.html must be created after the run of feature_selection.py. In this Html file, they are histograms of every feature separately.