MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms / Linear

Class Linear

mla/svm/kernerls.py:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class Linear(object):
7 def __call__(self, x, y):
8 return np.dot(x, y.T)
9
10 def __repr__(self):
11 return "Linear kernel"
12
13
14class Poly(object):

Callers 3

__init__Method · 0.90
test_svm_classificationFunction · 0.90
classificationFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_svm_classificationFunction · 0.72