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

Function parity

rnn_class/srn_parity.py:105–109  ·  view source on GitHub ↗
(B=12, learning_rate=1e-4, epochs=200)

Source from the content-addressed store, hash-verified

103
104
105def parity(B=12, learning_rate=1e-4, epochs=200):
106 X, Y = all_parity_pairs_with_sequence_labels(B)
107
108 rnn = SimpleRNN(20)
109 rnn.fit(X, Y, learning_rate=learning_rate, epochs=epochs, activation=T.nnet.relu, show_fig=False)
110
111
112if __name__ == '__main__':

Callers 1

srn_parity.pyFile · 0.70

Calls 3

fitMethod · 0.95
SimpleRNNClass · 0.70

Tested by

no test coverage detected