Skip to content

Commit 9205599

Browse files
authored
Update model.py
add a comment on why there are two model metric functions
1 parent ee5b414 commit 9205599

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/model.py

+2
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,11 @@ def plot_confusion_matrix(confusion_matrix, class_paths, title):
203203
204204
originally tried using functions that's only found in pandas 2.0
205205
206+
This version is used for the streamlit app
206207
'''
207208
def model_metrics(true_classes, predicted_classes, title):
208209
'''
210+
209211
Calculate accuracy, precision, recall, and F1 score and returns a dataframe.
210212
Also passes a title argument that titles the index for the model being used
211213
'''

0 commit comments

Comments
 (0)