-
Notifications
You must be signed in to change notification settings - Fork 2
Fixes sklearn pickling issues #103
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
base: develop
Are you sure you want to change the base?
Conversation
…sue' into merschformann/fixing-pickling-issue
…ng-pickling-issue
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.
Pull Request Overview
This PR fixes sklearn pickling issues by updating the nextmv dependency version and adding default values to LinearRegression options. The changes ensure compatibility with newer versions of the nextmv library while making the sklearn integration more robust.
- Updates nextmv dependency from >=0.25.0 to >=0.28.1 across packages
- Adds missing default values to LinearRegression option parameters
- Introduces comprehensive test coverage for model pickling functionality
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
nextmv-scikit-learn/tests/test_pickle.py | Adds new test file for validating model pickling functionality |
nextmv-scikit-learn/pyproject.toml | Updates nextmv dependency version to >=0.28.1 |
nextmv-scikit-learn/nextmv_sklearn/linear_model/options.py | Adds default values to LinearRegression parameters |
nextmv-scikit-learn/nextmv_sklearn/about.py | Bumps version to v0.3.1.dev1 |
nextmv-gurobipy/pyproject.toml | Updates nextmv dependency version to >=0.28.1 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
def solve(self, input: nextmv.Input) -> nextmv.Output: | ||
if input.options.mode == "linear": | ||
model = LinearRegression(input.options) | ||
_ = model |
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 variable assignment _ = model
serves no purpose and should be removed. If the intent is to instantiate the model for testing, use the model directly in the return statement or assign it to a meaningful variable name.
_ = model |
Copilot uses AI. Check for mistakes.
Caution This is WIP and can't be merged as it is incomplete and potentially not the solution to go with. |
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.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Description
Caution
This is WIP and can't be merged as it is incomplete and potentially not the solution to go with.
Resolves ENG-6089