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

Function transform

hypertools/tools/procrustes.py:142–151  ·  view source on GitHub ↗
(data, proj)

Source from the content-addressed store, hash-verified

140 return proj
141
142 def transform(data, proj):
143 if proj is None:
144 raise RuntimeError("Mapper needs to be trained before use.")
145
146 d = np.asmatrix(data)
147
148 # Do projection
149 res = (d * proj).A
150
151 return res
152
153 if format_data:
154 source, target = formatter([source, target])

Callers 1

procrustesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected