MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / xor

Function xor

svm_class/svm_gradient.py:105–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 return Xtrain, Xtest, Ytrain, Ytest, sigmoid, 1e-3, 200
104
105def xor():
106 X, Y = get_xor()
107 Xtrain, Xtest, Ytrain, Ytest = train_test_split(X, Y, test_size=0.33)
108 kernel = lambda X1, X2: rbf(X1, X2, gamma=5.)
109 return Xtrain, Xtest, Ytrain, Ytest, kernel, 1e-2, 300
110
111def donut():
112 X, Y = get_donut()

Callers

nothing calls this directly

Calls 2

get_xorFunction · 0.90
rbfFunction · 0.70

Tested by

no test coverage detected