Skip to content

Commit 9a2534f

Browse files
committed
Merge pull request scikit-learn#881 from amueller/fix_ica_components_rename
FIX renamed what was `components_` to `sources_`
2 parents 4eedded + a682c9a commit 9a2534f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sklearn/decomposition/fastica_.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,10 @@ class FastICA(BaseEstimator):
334334
335335
Attributes
336336
----------
337-
`components_` : 2D array, [n_components, n_samples]
337+
`components_` : 2D array, [n_components, n_features]
338338
The unmixing matrix
339+
`sources_`: 2D array, [n_samples, n_components]
340+
The estimated latent sources of the data.
339341
340342
Notes
341343
-----
@@ -372,7 +374,7 @@ def fit(self, X):
372374
self.components_ = np.dot(unmixing_, whitening_)
373375
else:
374376
self.components_ = unmixing_
375-
self.components_ = sources_
377+
self.sources_ = sources_
376378
return self
377379

378380
def transform(self, X):

0 commit comments

Comments
 (0)