| 12 | |
| 13 | |
| 14 | class Poly(object): |
| 15 | def __init__(self, degree=2): |
| 16 | self.degree = degree |
| 17 | |
| 18 | def __call__(self, x, y): |
| 19 | return np.dot(x, y.T) ** self.degree |
| 20 | |
| 21 | def __repr__(self): |
| 22 | return "Poly kernel" |
| 23 | |
| 24 | |
| 25 | class RBF(object): |
nothing calls this directly
no outgoing calls
no test coverage detected