-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fixed version transformation to accept user configs without ludwig_version #2424
Conversation
@@ -81,20 +81,17 @@ def wrap(fn: Callable[[Dict], Dict]): | |||
|
|||
def upgrade_to_latest_version(config: Dict): | |||
"""Updates config from an older version of Ludwig to the current version. If config does not have a | |||
"ludwig_version" key, no updates are applied. | |||
"ludwig_version" key, all updates are applied. |
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.
In line 1361 of api.py LudwigModel.load() I added a similar condition: if no version in config, assume an old version. At this time I was thinking we should upgrade on load but error on init for old configs. On second thought, I agree this is better... and with this change the condition in api.py load() should be removed.
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.
Thanks! Removed code at line 1361.
Co-authored-by: Daniel Treiman <dan.treiman@gmail.com>
5af69a7
to
e411f7f
Compare
Without this change, there is no opportunity to provide a deprecation period for user configs that lack the
ludwig_version
param inserted as part of config rendering.Also adds additional tests around early stopping, automl, backwards compatibility, and version transformation ordering.