Error for single example.
(self, i)
| 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. |