continuous-eval icon indicating copy to clipboard operation
continuous-eval copied to clipboard

Aggregate classification metrics

Open yisz opened this issue 1 year ago • 6 comments

yisz avatar Feb 23 '24 17:02 yisz

@ellipsis-dev can you give this a try?

Create a new folder classification under metrics, then a file called classification_metrics.py. In the file, you need to create a class ClassificationAccuracy(Metric):

In the call function, calculate the match between the predicted_class and the ground_truth_classes. If there's a match then return {"classification_correctness": 1.0 or 0.0"}

In the aggregate function, make sure to output, accuracy precision recall f1. Take into account both multi-class and binary-class situations

yisz avatar Feb 25 '24 02:02 yisz

I can't make an implementation plan because the feature request lacks specific details about what changes are required or how the aggregation should be performed. Without these details, it's not possible to create an accurate implementation plan.

ellipsis-dev[bot] avatar Feb 25 '24 02:02 ellipsis-dev[bot]

@ellipsis-dev How about you forget about the aggregation. Just implement the call function that checks if the predicted class matches the ground_truth_class

yisz avatar Feb 25 '24 02:02 yisz

Sorry, Ellipsis encountered a problem while generating a pull request. Our team has been alerted and is investigating. (wflow_BNdnWAxlKTfF8qNo) :robot:

ellipsis-dev[bot] avatar Feb 25 '24 02:02 ellipsis-dev[bot]

Apologies, there’s a bug with Ellipsis where it’s not properly receiving your comments, only the issue body (hence its confusion both times) - i’m fixing now

nsbradford avatar Feb 25 '24 02:02 nsbradford

Sorry, Ellipsis encountered a problem while generating a pull request. Our team has been alerted and is investigating. (wflow_IcdOq4eQYJHyqWZo) :robot:

ellipsis-dev[bot] avatar Feb 25 '24 03:02 ellipsis-dev[bot]