MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / Poly

Class Poly

mla/svm/kernerls.py:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14class 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
25class RBF(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected