MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms / fit

Method fit

mla/pca.py:35–37  ·  view source on GitHub ↗
(self, X, y=None)

Source from the content-addressed store, hash-verified

33 self.mean = None
34
35 def fit(self, X, y=None):
36 self.mean = np.mean(X, axis=0)
37 self._decompose(X)
38
39 def _decompose(self, X):
40 # Mean centering

Callers 13

test_PCAFunction · 0.95
regressionFunction · 0.45
classificationFunction · 0.45
pca.pyFile · 0.45
regressionFunction · 0.45
classificationFunction · 0.45
classificationFunction · 0.45
regressionFunction · 0.45
rbm.pyFile · 0.45
kmeans_exampleFunction · 0.45

Calls 1

_decomposeMethod · 0.95

Tested by 1

test_PCAFunction · 0.76