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

Function donut

svm_class/svm_gradient.py:111–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 return Xtrain, Xtest, Ytrain, Ytest, kernel, 1e-2, 300
110
111def donut():
112 X, Y = get_donut()
113 Xtrain, Xtest, Ytrain, Ytest = train_test_split(X, Y, test_size=0.33)
114 kernel = lambda X1, X2: rbf(X1, X2, gamma=5.)
115 return Xtrain, Xtest, Ytrain, Ytest, kernel, 1e-2, 300
116
117def spiral():
118 X, Y = get_spiral()

Callers

nothing calls this directly

Calls 2

get_donutFunction · 0.90
rbfFunction · 0.70

Tested by

no test coverage detected