You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The motivation for this proposal is as follows: when you store classes (not-yet instantiated, but from the main file) in a module's hyperparameters to instantiate them later, the related entries in the dictionary are not sanitized.
V0XNIHILI
changed the title
Sanitize object params before they get logged
Sanitize object params before they get logged from argument-free classes
Apr 12, 2024
Description & Motivation
The motivation for this proposal is as follows: when you store classes (not-yet instantiated, but from the main file) in a module's hyperparameters to instantiate them later, the related entries in the dictionary are not sanitized.
Pitch
For example, let's say my configuration is this:
Then I want the hyperparameters that will be logged to look like this:
And not like this:
Alternatives
When a module has at least one
__init__
argument, this problem doesn't exist:Results in a logged configuration dictionary of form:
Additional context
No response
cc @Borda
The text was updated successfully, but these errors were encountered: