Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/AssemblyAI-Community/Machine-Learning-From-Scratch
/ get_hyperplane_value
Function
get_hyperplane_value
09 SVM/svm.py:63–64 ·
view source on GitHub ↗
(x, w, b, offset)
Source
from the content-addressed store, hash-verified
61
62
def
visualize_svm():
63
def
get_hyperplane_value(x, w, b, offset):
64
return
(-w[0] * x + b + offset) / w[1]
65
66
fig = plt.figure()
67
ax = fig.add_subplot(1, 1, 1)
Callers
1
visualize_svm
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected