I have table with classification result of binary classification.
something like
id, predict_value, real_value
1, true, true
2, true, false
...
I want to get with sql classification_report, something like
class precision recall f1-score support
False 0.97 1.00 0.98 57241
True 0.68 0.22 0.33 2323
accuracy NULL NULL 0.97 59564
Can you help me with sql query ?
2
Answers
I have next ugly sql as soltion
The following might prove useful.
This query works for any positive number of classes, not just binary classification.