Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AssemblyAI-Community/Machine-Learning-From-Scratch
/ predict
Method
predict
09 SVM/svm.py:31–33 ·
view source on GitHub ↗
(self, X)
Source
from the content-addressed store, hash-verified
29
30
31
def
predict(self, X):
32
approx = np.dot(X, self.w) - self.b
33
return
np.sign(approx)
34
35
36
# Testing
Callers
1
svm.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected