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

Function parity

rnn_class/batch_parity.py:156–166  ·  view source on GitHub ↗
(B=12, learning_rate=1e-3, epochs=3000)

Source from the content-addressed store, hash-verified

154
155
156def parity(B=12, learning_rate=1e-3, epochs=3000):
157 X, Y = all_parity_pairs_with_sequence_labels(B)
158
159 rnn = SimpleRNN(4)
160 rnn.fit(X, Y,
161 batch_sz=10,
162 learning_rate=learning_rate,
163 epochs=epochs,
164 activation=T.nnet.sigmoid,
165 show_fig=False
166 )
167
168
169if __name__ == '__main__':

Callers 1

batch_parity.pyFile · 0.70

Calls 3

fitMethod · 0.95
SimpleRNNClass · 0.70

Tested by

no test coverage detected