MCPcopy Create free account
hub / github.com/cdcseacave/openMVS / predict

Method predict

scripts/python/ImportDMAPs.py:133–134  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

131 self.shift = y[0][0] - scale * X[0][0]
132
133 def predict(self, X):
134 return self.scale * X + self.shift
135
136 def score(self, X, y):
137 return np.mean(np.abs(self.predict(X) - y))

Callers 1

scoreMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected