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

Method __init__

mla/svm/kernerls.py:15–16  ·  view source on GitHub ↗
(self, degree=2)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected