Skip to content
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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

elronbandel
Copy link
Member

No description provided.

predictions, dataset: Union[Dataset, IterableDataset], data=None
) -> EvaluationResults:
if data is not None:
dataset = data # for backward compatibility
Copy link
Collaborator

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?

Copy link
Member Author

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=

@coveralls
Copy link

coveralls commented Dec 26, 2024

Coverage Status

coverage: 80.21% (+0.2%) from 80.031%
when pulling 5416826 on new-base-metric
into def3e0e on main.

dafnapension
dafnapension previously approved these changes Dec 26, 2024
@abstractmethod
def _sample_to_scores(self, sample: List[Any]) -> Dict[str, Any]:
pass

Copy link
Collaborator

@dafnapension dafnapension Dec 26, 2024

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?

…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]>
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants