-
Notifications
You must be signed in to change notification settings - Fork 183
MAINT: Remove unused arguments to LogisticRegression SPMD #2523
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
MAINT: Remove unused arguments to LogisticRegression SPMD #2523
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 37 files with indirect coverage changes 🚀 New features to boost your workflow:
|
/intelci: run |
1 similar comment
/intelci: run |
/intelci: run |
1 similar comment
/intelci: run |
Failures do not seem to be blamable on this PR. |
I think we can hard-code method "dense_batch" in this line here https://github.com/uxlfoundation/scikit-learn-intelex/blob/main/onedal/linear_model/logistic_regression.py#L66 and avoid having this argument at all |
Would it require removing the argument from some other function signature? |
I'm pretty sure it only should be removed from class declaration in this file, it shouldn't be used in any other places |
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 is impacting beyond spmd, it is impacting all onedal GPU use of logisticregression please reflect that in the title and description. As per the evolving design documents, these would be sklearn conformance additions, and are in the wrong module. Thanks for removing them.
I don't follow. The non-SPMD GPU estimator from sklearnex would already check for conditions that wouldn't result in passing what's removed here. Only the SPMD estimator would allow calling it with all the arguments it offers that it then ignores.
Which design documents do you mean? |
Looks like these arguments were actually needed for some reason for the non-SPMD GPU version to work, so not sure what would be the best way to remove them from SPMD instead of accepting but ignoring. |
Description
This PR removes unused arguments to the SPMD version of logistic regression, as it ignores some of them.
PR should start as a draft, then move to ready for review state after CI is passed and all applicable checkboxes are closed.
This approach ensures that reviewers don't spend extra time asking for regular requirements.
You can remove a checkbox as not applicable only if it doesn't relate to this PR in any way.
For example, PR with docs update doesn't require checkboxes for performance while PR with any change in actual code should have checkboxes and justify how this code change is expected to affect performance (or justification should be self-evident).
Checklist to comply with before moving PR from draft:
PR completeness and readability
Testing