-
Notifications
You must be signed in to change notification settings - Fork 413
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
Cloning MultitaskWrapper
with postfix parameters results in incorrect dictionary
#2656
Comments
Hi! thanks for your contribution!, great first issue! |
MultitaskWrapper
with postfix parameters results in incorrect dictionary
This is also the case for the |
@SkafteNicki what do you think about adding |
@MihaiBabiac thank you for your feedback, I have check the sample code and looked to the implementation and so far it seems to me all is as expected, ref to the docs: Args:
prefix: a string to append in front of the metric keys
postfix: a string to append after the keys of the output dict. @Buzzeitor30 Could you pls elaborate on why would you be adding pre/postfix to the "metric's dictionary" which is not present in the key? |
Hi @Borda, thanks for the reply. I think a common scenario is to clone a metric collection or, in this case, the The similarity to the If it's unclear or would like to have an MRE, just let me know. |
Hi @MihaiBabiac, thanks for raising this issue. |
Sorry for answering back so late. It is, indeed, as @MihaiBabiac points out |
🐛 Bug
If you clone a MultitaskWrapper and make usage of the postfix parameter, input dictionary keys seem to expect to have the postfix included at the end. However, documentation indicates that the output dictionary should be modified. I.e., the one resulting after having computed the values
To Reproduce
Steps to reproduce the behavior...
Expand
Expected behavior
Resulting dictionary should include {"F1train" : ....}. Nevertheless, it throws a KeyError
Environment
Additional context
The text was updated successfully, but these errors were encountered: