Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ sigmoid
Function
sigmoid
svm_class/svm_smo.py:34–35 ·
view source on GitHub ↗
(X1, X2, gamma=0.05, c=1)
Source
from the content-addressed store, hash-verified
32
return
result
33
34
def
sigmoid(X1, X2, gamma=0.05, c=1):
35
return
np.tanh(gamma * X1.dot(X2.T) + c)
36
37
38
class
SVM:
Callers
1
sgd
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected