ijyliu / computer-vision-project

Using classical and neural image embeddings and finetuned end-to-end networks to achieve top-tier performance on a vehicle type classification task. Containerized and deployed model as a web app
https://cv-web-app-3m4f2rmfzq-uc.a.run.app/
0 stars 0 forks source link

Create Classifier Evaluation Function and Run for All Classifiers #52

Closed ijyliu closed 5 months ago

ijyliu commented 6 months ago

Write a function in a .py file that we can use for evaluation. Then write evaluation notebooks for each classifier that call this.

Input: Filepath for Classifier Predictions Excel File, Classifier Name

Output:

ijyliu commented 5 months ago

@ashutoshtiwari13 i suggest adding color coding to the matrix for each classifier (blue for logistic regression, red for xgboost, green for svm, etc)

you could make a dictionary that maps the classifier name input to color or something

ijyliu commented 5 months ago

@ashutoshtiwari13 please continue work on this. it's now in Code/Evaluation. rename the Confusion matrix files to something like Evaluate_Classifiers and Evaluate_Classifier_Functions. we actually do have to turn in code with the report and they are grading it for how well commented, etc. it is

really need to see the misclassified images! it's important to understand where the classifiers are going wrong for the report

also, everything should be saved to Output/Classifier Evaluation in a subfolder for each classifier

ijyliu commented 5 months ago

@ashutoshtiwari13 please move the output to a subfolder for each classifier in https://github.com/ijyliu/computer-vision-project/tree/main/Output/Classifier%20Evaluation

also, when you do your misclassified images, set the seed in python so we get the same images every time we run

ashutoshtiwari13 commented 5 months ago

Done!

ijyliu commented 5 months ago

i'm still getting different misclassified images every time the script is run. you need to set a seed in random.sample

also, it's not clear to me for what specific feature set the misclassified images figure is from. please add that to the filename. we should have one saved for "Logistic_Regression_All_Data", one saved for "Logistic_Regression_All_Features_PCA", etc.

ijyliu commented 5 months ago

actually nevermind about the seed, that is correct, but please fix the misclassified images

ijyliu commented 5 months ago

i fixed the paths for you, you should edit this file

https://github.com/ijyliu/computer-vision-project/blob/main/Code/Evaluation/Evaluate_Classifier.ipynb

ijyliu commented 5 months ago

you should also remove all underscores from the plot title for all plots, everything should be formatted neatly because they care about presentation

ijyliu commented 5 months ago

@ashutoshtiwari13

ijyliu commented 5 months ago

completed by @ijyliu, @ashutoshtiwari13 in default of obligation