def train_poetry():
    X, Y, V = get_poetry_classifier_data(samples_per_class=500)
    rnn = SimpleRNN(30, V)
    rnn.fit(X,
            Y,
            learning_rate=1e-6,
            show_fig=True,
            activation=T.nnet.relu,
            epochs=1000)
Beispiel #2
0
def train_poetry():
    X, Y, V = get_poetry_classifier_data(500)
    srn = SRN(30, V)
    srn.fit(X,
            Y,
            learning_rate=10e-7,
            show_fig=True,
            activation=T.nnet.relu,
            epochs=300)
def train_poetry():
	X, Y, V = get_poetry_classifier_data(samples_per_class=500)
	rnn = SimpleRNN(30, V)
	rnn.fit(X, Y, learning_rate=10e-7, show_fig=True, activation=T.nnet.relu, epochs=1000)
Beispiel #4
0
def train_poetry():
    X, Y, V = get_poetry_classifier_data(samples_per_class=500)
Beispiel #5
0
def train_poetry():
    X, Y, V = get_poetry_classifier_data(samples_per_class=500)
    rnn = SimpleRNN(30, V)