Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
6
class
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
14
class
Poly(object):
Callers
3
__init__
Method · 0.90
test_svm_classification
Function · 0.90
classification
Function · 0.90
Calls
no outgoing calls
Tested by
1
test_svm_classification
Function · 0.72