MCPcopy Create free account
hub / github.com/AssemblyAI-Community/Machine-Learning-From-Scratch / __init__

Method __init__

07 PCA/pca.py:6–9  ·  view source on GitHub ↗
(self, n_components)

Source from the content-addressed store, hash-verified

4class PCA:
5
6 def __init__(self, n_components):
7 self.n_components = n_components
8 self.components = None
9 self.mean = None
10
11 def fit(self, X):
12 # mean centering

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected