MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / main

Function main

ann_class2/batch_norm_theano.py:209–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207
208
209def main():
210 # step 1: get the data and define all the usual variables
211 Xtrain, Xtest, Ytrain, Ytest = get_normalized_data()
212
213 ann = ANN([500, 300])
214 ann.fit(Xtrain, Ytrain, Xtest, Ytest, show_fig=True)
215
216 print("Train accuracy:", ann.score(Xtrain, Ytrain))
217 print("Test accuracy:", ann.score(Xtest, Ytest))
218
219
220if __name__ == '__main__':

Callers 1

Calls 4

fitMethod · 0.95
scoreMethod · 0.95
get_normalized_dataFunction · 0.90
ANNClass · 0.70

Tested by

no test coverage detected