Classification probability plots
Create line chart visualizations displaying the classification probabilities of a single classifier.
[1]:
from simba.plotting.probability_plot_creator_mp import TresholdPlotCreatorMultiprocess
[2]:
#DEFINITIONS
CONFIG_PATH = '/Users/simon/Desktop/envs/troubleshooting/two_black_animals_14bp/project_folder/project_config.ini'
FRAME_SETTING = False
VIDEO_SETTING = True
LAST_FRAME_SETTING = True
CLASSIFIER_NAME = 'Attack'
CORES = 5
STYLE_ATTRIBUTES = {'width': 640,
'height': 480,
'font size': 10,
'line width': 3,
'color': 'blue',
'circle size': 20,
'y_max': 'auto'}
[4]:
plotter = TresholdPlotCreatorMultiprocess(config_path=CONFIG_PATH,
frame_setting=FRAME_SETTING,
video_setting=VIDEO_SETTING,
last_frame=LAST_FRAME_SETTING,
clf_name=CLASSIFIER_NAME,
cores=5,
files_found=['/Users/simon/Desktop/envs/troubleshooting/two_black_animals_14bp/project_folder/csv/machine_results/Together_1.csv'],
style_attr=STYLE_ATTRIBUTES)
plotter.run()
Processing 1 video(s)...
SIMBA COMPLETE: Final distance plot saved at /Users/simon/Desktop/envs/troubleshooting/two_black_animals_14bp/project_folder/frames/output/probability_plots/Together_1_Attack_final_image.png (elapsed time: 0.1092s) complete
Creating probability images, multiprocessing (determined chunksize: 1, cores: 5)...
Image 348/1738, Video 1/1...
Image 696/1738, Video 1/1...
Image 1044/1738, Video 1/1...
Image 1392/1738, Video 1/1...
Image 1740/1738, Video 1/1...
Joining Together_1 multiprocessed video...
SIMBA COMPLETE: Video concatenated (elapsed time: 2.6887s) complete
Probability video Together_1 complete (elapsed time: 28.6517s) ...
SIMBA COMPLETE: Probability visualizations for 1 videos created in project_folder/frames/output/gantt_plots directory (elapsed time: 28.6806s) complete
[ ]: