MCPcopy
hub / github.com/ContextLab/hypertools / transform

Method transform

hypertools/_externals/ppca.py:111–117  ·  view source on GitHub ↗
(self, data=None)

Source from the content-addressed store, hash-verified

109 self._calc_var()
110
111 def transform(self, data=None):
112
113 if self.C is None:
114 raise RuntimeError('Fit the data model first.')
115 if data is None:
116 return np.dot(self.data, self.C)
117 return np.dot(data, self.C)
118
119 def _calc_var(self):
120

Callers 1

fill_missingFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected