-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restructure aggregation of InstanceMetric , enabling to expand grouping and filtering option on to GlobalMetric #752
Conversation
733c156
to
9aa1551
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #752 +/- ##
==========================================
+ Coverage 91.48% 91.98% +0.50%
==========================================
Files 100 103 +3
Lines 10169 10668 +499
==========================================
+ Hits 9303 9813 +510
+ Misses 866 855 -11 ☔ View full report in Codecov by Sentry. |
86b451f
to
fc9e9fa
Compare
There are currently additional ways to group metrics (note I'm not sure if they are the best way either), but my general message is we see how add functionality without expanding the APIs of metrics more and more. We should have one recommended way to group, and if we implement a new one, and replace other uses. The proposed method here allows arbitrary conditions, buts requires listing them specifically. On the other hand, grouping by field value as done today is more natural is some cases, where the options are not known. Another suggestion is to share the proposed specification before the PR, so feedback can be given early. |
973d4ce
to
5c15c9d
Compare
Hi @yoavkatz , I hope the current suggestion for a class that takes care of splitting/grouping is more in the direction you had in mind. |
src/unitxt/metrics.py
Outdated
# InstanceMetric's compute_instance_scores(stream) | ||
|
||
|
||
class Aggregator(Artifact): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this related to this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A start of an attempt to unify the aggregators over the InstanceMetrics
Yes. I think better. Elron said there is a grander design, which we should review. |
4de3b42
to
93d2d07
Compare
2421f96
to
400fa81
Compare
Hi @elronbandel and @yoavkatz, |
5e2836d
to
0ff2001
Compare
42b8709
to
1267565
Compare
7fb3522
to
a7326e5
Compare
Signed-off-by: dafnapension <dafnashein@yahoo.com>
Signed-off-by: dafnapension <dafnashein@yahoo.com>
… moved to MetricWithConfidence on the way to expand to global Signed-off-by: dafnapension <dafnashein@yahoo.com>
Signed-off-by: dafnapension <dafnashein@yahoo.com>
Signed-off-by: dafnapension <dafnashein@yahoo.com>
…patibility Signed-off-by: dafnapension <dafnashein@yahoo.com>
Signed-off-by: dafnapension <dafnashein@yahoo.com>
…atenate when combining groups' scores Signed-off-by: dafnapension <dafnashein@yahoo.com>
Signed-off-by: dafnapension <dafnashein@yahoo.com>
Signed-off-by: dafnapension <dafnashein@yahoo.com>
…gregating_function Signed-off-by: dafnapension <dafnashein@yahoo.com>
Signed-off-by: dafnapension <dafnashein@yahoo.com>
57d9a0a
to
eb7f439
Compare
replaced by #845 |
No description provided.