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

Support test_io_data for MultiDataEval and eval util #84

Merged
merged 3 commits into from
Feb 29, 2024

Conversation

MischaPanch
Copy link
Collaborator

Closes: #83

This should be uncontroversial

"""
self.io_data_dict = io_data_dict
self.test_io_data_dict = test_io_data_dict or {}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid errors, we should check for a matching key set here.

Copy link
Owner

@opcode81 opcode81 Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docstring should also be adjusted to state this requirement. I don't think it's a valid use case for the user to want to use a user-defined test set for only some of the datasets (all or nothing, I'd say). If the users wants None, it has to be explicit rather than implicit.

Copy link
Owner

@opcode81 opcode81 Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docstring of io_data_dict should also state that for the case where test_io_data_dict is given, it specifies the training set to use and otherwise the full dataset, which will be split, depending on the mode, according to the rules defined in evaluator_params or cross_validator_params. Since the latter case is (likely) prevalent, we should mention it first.

Also, we should state that test_io_data_dict can only be used for single-split evaluations, not for cross-validation. If someone calls the evaluation with cross-validation enabled while test_io_data_dict is not None, we should raise an error.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@MischaPanch
Copy link
Collaborator Author

The pipeline was successful, just the post-job cleanup failed for some reason. Can be merged

@opcode81 opcode81 merged commit 7d20514 into develop Feb 29, 2024
1 check failed
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.

support test_io_data_dict in MultiDataModelEvaluation
2 participants