-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
a7d1005
to
41e2082
Compare
src/sensai/evaluation/eval_util.py
Outdated
""" | ||
self.io_data_dict = io_data_dict | ||
self.test_io_data_dict = test_io_data_dict or {} |
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 avoid errors, we should check for a matching key set here.
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.
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.
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.
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.
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.
Done
The pipeline was successful, just the post-job cleanup failed for some reason. Can be merged |
Closes: #83
This should be uncontroversial