BUG: ProbabilisticPCA.score work with pipeline

score(X, y=None) is required to be used by generic objects that work on
supervised and unsupervised learners.
This commit is contained in:
Gael varoquaux 2011-11-04 09:45:20 +01:00
parent aea7b5a2de
commit cb3eff0899
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ class ProbabilisticPCA(PCA):
self.covariance_ += self.explained_variance_[k] * add_cov
return self
def score(self, X):
def score(self, X, y=None):
"""Return a score associated to new data
Parameters