MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms / _error

Method _error

mla/svm/svm.py:125–127  ·  view source on GitHub ↗

Error for single example.

(self, i)

Source from the content-addressed store, hash-verified

123 return alpha
124
125 def _error(self, i):
126 """Error for single example."""
127 return self._predict_row(self.X[i]) - self.y[i]
128
129 def _find_bounds(self, i, j):
130 """Find L and H such that L <= alpha <= H.

Callers 1

_trainMethod · 0.95

Calls 1

_predict_rowMethod · 0.95

Tested by

no test coverage detected