MCPcopy 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
34def sigmoid(X1, X2, gamma=0.05, c=1):
35 return np.tanh(gamma * X1.dot(X2.T) + c)
36
37
38class SVM:

Callers 1

sgdFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected