-
-
Notifications
You must be signed in to change notification settings - Fork 379
[GSK-2292 GSK-2293] Add args kwargs to the public methods of the model and all #1661
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
[GSK-2292 GSK-2293] Add args kwargs to the public methods of the model and all #1661
Conversation
| "3.11": ["3.11"], | ||
| } | ||
| PYTHON_MAJOR_VERSION = ".".join(platform.python_version_tuple()[:2]) | ||
| BACKWARD_COMPATIBILITY_MODEL_VERSIONS = {"3.9": "3.10", "3.10": "3.10", "3.11": "3.11"} |
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.
How do we ensure the backward compatibility 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.
This one is a lookup table (which pickled version to open), I haven't pickled in Python 3.9 so 3.9 opens 3.10 pickle.
The real test is can we still load the model and predict and we will get an error if we break it by modifying the model class
Inokinoki
left a comment
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.
LGTM!
My only concern is on the unused args and kwargs, which impacts the code smell.
But I think we have to do it if without a better solution...
Let me change to |
|
Kudos, SonarCloud Quality Gate passed! |








Description
argsandkwargsto the public methods of the model class and subclassType of Change