Skip to content

Navigation Menu

Sign in
Appearance settings

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 8ebb614

Browse filesBrowse files
authored
Added self to abstract fit method (#18971)
1 parent c9677d6 commit 8ebb614
Copy full SHA for 8ebb614

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎sklearn/decomposition/_base.py

Copy file name to clipboardExpand all lines: sklearn/decomposition/_base.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.