Commit 02f23bd7 authored by Marcel Henrik Schubert's avatar Marcel Henrik Schubert
Browse files

fix slight error

parent 489f19ff
......@@ -599,7 +599,7 @@ def plotter(subsets, subana, phases, labels):
df = df_dic[st][an]['df']
comp_sub = {'accuracy': accuracy_score(df.loc[df[an+'_'+str(st)+'_life_phase'] == ph][an+'_'+str(st)+'_life_phase'],
df.loc[df[an+'_'+str(st)+'_life_phase'] == ph][an+'_'+str(st)+'_life_phase_pred']).round(3),
'precision': precision_score(df['df'][an+'_'+str(st)+'_life_phase'],
'precision': precision_score(df[an+'_'+str(st)+'_life_phase'],
df[an+'_'+str(st)+'_life_phase_pred'], labels = [ph],
average='weighted').round(3),
'recall': recall_score(df[an+'_'+str(st)+'_life_phase'],
......@@ -690,7 +690,7 @@ def plotter(subsets, subana, phases, labels):
df = df_dic[st][an]['df']
comp_sub = {'accuracy': accuracy_score(df.loc[df[an+'_'+str(st)+'_life_phase'] == ph][an+'_'+str(st)+'_life_phase'],
df.loc[df[an+'_'+str(st)+'_life_phase'] == ph][an+'_'+str(st)+'_life_phase_pred_auth']).round(3),
'precision': precision_score(df['df'][an+'_'+str(st)+'_life_phase'],
'precision': precision_score(df[an+'_'+str(st)+'_life_phase'],
df[an+'_'+str(st)+'_life_phase_pred_auth'], labels = [ph],
average='weighted').round(3),
'recall': recall_score(df[an+'_'+str(st)+'_life_phase'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment