(self, X, Y)
| 41 | self.C = C |
| 42 | |
| 43 | def _loss(self, X, Y): |
| 44 | # return -np.sum(self.alphas) + \ |
| 45 | # 0.5 * np.sum(np.outer(Y, Y) * self.kernel(X, X) * np.outer(self.alphas, self.alphas)) |
| 46 | return -np.sum(self.alphas) + \ |
| 47 | 0.5 * np.sum(self.YYK * np.outer(self.alphas, self.alphas)) |
| 48 | |
| 49 | def _take_step(self, i1, i2): |
| 50 | # returns True if model params changed, False otherwise |
no outgoing calls
no test coverage detected