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

Function train_poetry

rnn_class/poetry_classifier.py:149–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147
148
149def train_poetry():
150 X, Y, V = get_poetry_classifier_data(samples_per_class=500)
151 rnn = SimpleRNN(30, V)
152 rnn.fit(X, Y, learning_rate=1e-6, show_fig=True, activation=T.nnet.relu, epochs=1000)
153
154if __name__ == '__main__':
155 train_poetry()

Callers 1

Calls 3

fitMethod · 0.95
SimpleRNNClass · 0.70

Tested by

no test coverage detected