added loopity loop function call to extract mean values for each model's metric from nested dict (2/3 levels)
This commit is contained in:
parent
29306e77ee
commit
a1631ea54b
3 changed files with 321 additions and 8 deletions
|
@ -19,11 +19,6 @@ model_name = 'Logistic Regression'
|
|||
model_name = 'Naive Bayes'
|
||||
model_name = 'K-Nearest Neighbors'
|
||||
model_name = 'SVM'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#%%
|
||||
model_metric = 'F1_score'
|
||||
|
||||
|
@ -48,10 +43,9 @@ print(log_reg_mccM)
|
|||
|
||||
log_reg_mccdf = pd.DataFrame({model_name: [log_reg_mccM]}, index = [model_metric])
|
||||
log_reg_mccdf
|
||||
|
||||
#%%
|
||||
|
||||
|
||||
################################################################
|
||||
# extract items from wwithin a nested dict
|
||||
#%% Classification Metrics we need to mean()
|
||||
classification_metrics = {
|
||||
'F1_score': []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue