nilmtk / nilmtk-contrib

Apache License 2.0
114 stars 59 forks source link

The metrics question #74

Open ZztLn opened 2 years ago

ZztLn commented 2 years ago

Hey there, I see f1score set threshold = 10,so I want to know the meaning of this. `def f1score(app_gt, app_pred): threshold = 10 gt_temp = np.array(app_gt) gt_temp = np.where(gt_temp<threshold,0,1) pred_temp = np.array(app_pred) pred_temp = np.where(pred_temp<threshold,0,1)

return f1_score(gt_temp, pred_temp)

`

Thank you ,very much!