-
Notifications
You must be signed in to change notification settings - Fork 183
Support for sklearn 1.6 conformance testing #2465
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
Changes from 11 commits
5f53378
1a0a7a0
53b6cd3
23cf730
52dd80d
50e108d
a6dc3aa
31ba4bd
988ea48
1c59e56
36eedd5
6ff5d32
8ac36ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -325,6 +325,15 @@ def _onedal_fit(self, X, y, sample_weight, queue=None): | |
self._onedal_estimator.fit(X, y, queue=queue) | ||
self._save_attributes() | ||
|
||
if sklearn_check_version("1.6"): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you do this for Linear Regression and the related incremental algos so that they all behave the same/ reduce maintenance? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure its relevant for the others, it originates from scikit-learn/scikit-learn#19746 which specifically addresses Ridge There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/linear_model/tests/test_common.py#L197 Is the answer hidden within the linked PR. Place notes into LinearRegression and IncrementalLinearRegression about this deviation, and add this change in return values to IncrementalRidge. |
||
if y.ndim == 1 or y.shape[1] == 1: | ||
self.coef_ = self.coef_.ravel() | ||
self.intercept_ = self.intercept_[0] | ||
else: | ||
if self.coef_.shape[0] == 1 and y.ndim == 1: | ||
self.coef_ = self.coef_.ravel() | ||
self.intercept_ = self.intercept_[0] | ||
|
||
def _onedal_predict(self, X, queue=None): | ||
X = validate_data(self, X, accept_sparse=False, reset=False) | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.