8000 Added self to abstract fit method (#18971) · scikit-learn/scikit-learn@8ebb614 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ebb614

Browse files
authored
Added self to abstract fit method (#18971)
1 parent c9677d6 commit 8ebb614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/decomposition/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get_precision(self):
7777
return precision
7878

7979
@abstractmethod
80-
def fit(X, y=None):
80+
def fit(self, X, y=None):
8181
"""Placeholder for fit. Subclasses should implement this method!
8282
8383
Fit the model with X.

0 commit comments

Comments
 (0)
0