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

Function parity

rnn_class/tf_parity.py:125–135  ·  view source on GitHub ↗
(B=12, learning_rate=1., epochs=1000)

Source from the content-addressed store, hash-verified

123
124
125def parity(B=12, learning_rate=1., epochs=1000):
126 X, Y = all_parity_pairs_with_sequence_labels(B)
127
128 rnn = SimpleRNN(4)
129 rnn.fit(X, Y,
130 batch_sz=len(Y),
131 learning_rate=learning_rate,
132 epochs=epochs,
133 activation=tf.nn.sigmoid,
134 show_fig=False
135 )
136
137
138if __name__ == '__main__':

Callers 1

tf_parity.pyFile · 0.70

Calls 3

fitMethod · 0.95
SimpleRNNClass · 0.70

Tested by

no test coverage detected