Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/rushter/MLAlgorithms
/ _predict_row
Method
_predict_row
mla/svm/svm.py:114–116 ·
view source on GitHub ↗
(self, X)
Source
from the content-addressed store, hash-verified
112
return
result
113
114
def
_predict_row(self, X):
115
k_v = self.kernel(self.X[self.sv_idx], X)
116
return
np.dot((self.alpha[self.sv_idx] * self.y[self.sv_idx]).T, k_v.T) + self.b
117
118
def
clip(self, alpha, H, L):
119
if
alpha > H:
Callers
2
_predict
Method · 0.95
_error
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected