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

Function main

ann_class2/batch_norm_tf.py:184–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183
184def main():
185 # step 1: get the data and define all the usual variables
186 Xtrain, Xtest, Ytrain, Ytest = get_normalized_data()
187
188 ann = ANN([500, 300])
189
190 session = tf.InteractiveSession()
191 ann.set_session(session)
192
193 ann.fit(Xtrain, Ytrain, Xtest, Ytest, show_fig=True)
194
195 print("Train accuracy:", ann.score(Xtrain, Ytrain))
196 print("Test accuracy:", ann.score(Xtest, Ytest))
197
198
199if __name__ == '__main__':

Callers 1

batch_norm_tf.pyFile · 0.70

Calls 5

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

Tested by

no test coverage detected