MCPcopy
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / multiTest

Function multiTest

Logistic regression/Logistic.py:106–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 return errorRate
105
106def multiTest():
107 numTests = 10; errorSum = 0.0
108 for k in range(numTests):
109 errorSum += colicTest()
110 print("after %d iterations the average error rate is: %f" % (numTests, errorSum/float(numTests)))
111
112dataArr, labelMat = loadDataSet()
113weights = stocGradAscent1(array(dataArr), labelMat)

Callers 1

Logistic.pyFile · 0.85

Calls 1

colicTestFunction · 0.85

Tested by

no test coverage detected