0

I am getting this undefined metric warning error: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples. Use zero_division parameter to control this behavior. During my FL simulations

Due to the error warnings the precision, F1-score, and recall results are low

1 Answers1

0

Your issue is probably related to this: UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 in labels with no predicted samples

You probably have labels in your test set, which do not appear in your generated predictions for the same set.

Mihail
  • 21
  • 3