()
| 147 | |
| 148 | |
| 149 | def 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 | |
| 154 | if __name__ == '__main__': |
| 155 | train_poetry() |
no test coverage detected