Skip to content
Snippets Groups Projects
Commit 01be9a5f authored by Olivier Grisel's avatar Olivier Grisel
Browse files

FIX: typo s/mean/mean_/g in RandomizedPCA

parent b6dfcc05
Branches
Tags
No related merge requests found
...@@ -338,7 +338,7 @@ class RandomizedPCA(BaseEstimator): ...@@ -338,7 +338,7 @@ class RandomizedPCA(BaseEstimator):
self.copy = copy self.copy = copy
self.iterated_power = iterated_power self.iterated_power = iterated_power
self.whiten = whiten self.whiten = whiten
self.mean = None self.mean_ = None
def fit(self, X, **params): def fit(self, X, **params):
"""Fit the model to the data X""" """Fit the model to the data X"""
...@@ -372,7 +372,7 @@ class RandomizedPCA(BaseEstimator): ...@@ -372,7 +372,7 @@ class RandomizedPCA(BaseEstimator):
def transform(self, X): def transform(self, X):
"""Apply the dimension reduction learned on the training data.""" """Apply the dimension reduction learned on the training data."""
if self.mean is not None: if self.mean_ is not None:
X = X - self.mean_ X = X - self.mean_
X = safe_sparse_dot(X, self.components_) X = safe_sparse_dot(X, self.components_)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment