8000 Revert unwanted modificatoin · scikit-learn/scikit-learn@b698d9f · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b698d9f

Browse files
committed
Revert unwanted modificatoin
1 parent 6b0b773 commit b698d9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/dummy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def y_mean_(self):
366366
r 9431 eturn self.constant_
367367
raise AttributeError
368368

369-
def fit(self, X, y, sample_weight=None):
369+
def fit(self, X, y):
370370
"""Fit the random regressor.
371371
372372
Parameters
@@ -394,7 +394,7 @@ def fit(self, X, y, sample_weight=None):
394394
raise ValueError("y must not be empty.")
395395
self.output_2d_ = (y.ndim == 2)
396396

397-
check_consistent_length(X, y, sample_weight)
397+
check_consistent_length(X, y)
398398

399399
if self.strategy == "mean":
400400
self.constant_ = np.mean(y, axis=0)

0 commit comments

Comments
 (0)
0