Skip to content

Commit 7add6a5

Browse files
allow weights as positional argument (#2421)
1 parent f4f7c36 commit 7add6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearnex/basic_statistics/basic_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def _onedal_fit(self, X, sample_weight=None, queue=None):
221221
self._save_attributes()
222222
self.n_features_in_ = X.shape[1] if len(X.shape) > 1 else 1
223223

224-
def fit(self, X, y=None, *, sample_weight=None):
224+
def fit(self, X, y=None, sample_weight=None):
225225
"""Calculate statistics of X.
226226
227227
Parameters

0 commit comments

Comments
 (0)