(self, alpha, H, L)
| 116 | return np.dot((self.alpha[self.sv_idx] * self.y[self.sv_idx]).T, k_v.T) + self.b |
| 117 | |
| 118 | def clip(self, alpha, H, L): |
| 119 | if alpha > H: |
| 120 | alpha = H |
| 121 | if alpha < L: |
| 122 | alpha = L |
| 123 | return alpha |
| 124 | |
| 125 | def _error(self, i): |
| 126 | """Error for single example.""" |
no outgoing calls
no test coverage detected