-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add MapReduceMetric a new base class to integrate all metrics into #1459
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: elronbandel <[email protected]>
c0217d9
to
9377910
Compare
predictions, dataset: Union[Dataset, IterableDataset], data=None | ||
) -> EvaluationResults: | ||
if data is not None: | ||
dataset = data # for backward compatibility |
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.
What if both are not None?
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.
I wanted to rename data
to dataset
to have consistent name with load_dataset and create_dataset and DatasetRecipe but yet have backward compatibility for code using data=
…rocessing Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
…rocessing Signed-off-by: elronbandel <[email protected]>
c0bbe7f
to
6e29e41
Compare
…fidenceIntervalMixin Signed-off-by: elronbandel <[email protected]>
…new-base-metric Signed-off-by: elronbandel <[email protected]>
… accuracy calculations Signed-off-by: elronbandel <[email protected]>
@abstractmethod | ||
def _sample_to_scores(self, sample: List[Any]) -> Dict[str, Any]: | ||
pass | ||
|
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.
to my understanding, score_names might include instance metrics as well as global metrics.
For instance metrics, the instance scores are already computed, and why compute them again?
…ccuracy and F1 metrics Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
…configurations for consistency Signed-off-by: elronbandel <[email protected]>
0d28be9
to
7cd647b
Compare
…for improved type handling Signed-off-by: elronbandel <[email protected]>
…r and classes, and updating defaults for improved clarity and type safety Signed-off-by: elronbandel <[email protected]>
…nsistency Signed-off-by: elronbandel <[email protected]>
…ic classification Signed-off-by: elronbandel <[email protected]>
…y metrics Signed-off-by: elronbandel <[email protected]>
…ming consistency and improve text processing with new operators Signed-off-by: elronbandel <[email protected]>
…es, enhance data classification policies, and improve type safety with Literal types Signed-off-by: elronbandel <[email protected]>
… and standardize class names to lowercase for consistency Signed-off-by: elronbandel <[email protected]>
…g additions and remove unnecessary code Signed-off-by: elronbandel <[email protected]>
…d classes, enhancing type safety and consistency in multi-turn and single-turn configurations Signed-off-by: elronbandel <[email protected]>
No description provided.