Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to increase n_epoch level #3

Open
sarancruzer opened this issue Jan 5, 2018 · 1 comment
Open

How to increase n_epoch level #3

sarancruzer opened this issue Jan 5, 2018 · 1 comment

Comments

@sarancruzer
Copy link

reset underlying graph data

tf.reset_default_graph()

Build neural network

net = tflearn.input_data(shape=[None, len(train_x[0])])
net = tflearn.fully_connected(net, 8)
net = tflearn.fully_connected(net, 8)
net = tflearn.fully_connected(net, len(train_y[0]), activation='softmax')
net = tflearn.regression(net)

Define model and setup tensorboard

model = tflearn.DNN(net, tensorboard_dir='tflearn_logs')

Start training (apply gradient descent algorithm)

model.fit(train_x, train_y, n_epoch=1000, batch_size=8, show_metric=True)
model.save('model.tflearn')

@MauryaRitesh
Copy link

Use n_epoch = 500000 or whatever, instead of 1000. Like this:
model.fit(train_x, train_y, n_epoch=500000, batch_size=8, show_metric=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants