Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_PCA
Function · 0.95
regression
Function · 0.45
classification
Function · 0.45
pca.py
File · 0.45
regression
Function · 0.45
classification
Function · 0.45
classification
Function · 0.45
regression
Function · 0.45
nnet_convnet_mnist.py
File · 0.45
rbm.py
File · 0.45
nnet_rnn_text_generation.py
File · 0.45
kmeans_example
Function · 0.45
Calls
1
_decompose
Method · 0.95
Tested by
1
test_PCA
Function · 0.76