Skip to content

the problem of training set and testing set #1

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

Open
ohdoughnut opened this issue Jan 11, 2018 · 0 comments
Open

the problem of training set and testing set #1

ohdoughnut opened this issue Jan 11, 2018 · 0 comments

Comments

@ohdoughnut
Copy link

ohdoughnut commented Jan 11, 2018

Hello, in the process of iterative training, I see that the testing set is also being iterated. Do you use the testing set as validation set, or do the iterative testing set have other meanings? Thank you.
The relevant code is as follows:
`for i in range(1, N_EPOCHS + 1):
for start, end in zip(range(0, train_count, BATCH_SIZE),
range(BATCH_SIZE, train_count + 1, BATCH_SIZE)):
sess.run(optimizer, feed_dict={X:X_train[start:end],
Y:y_train[start:end]})

_, acc_train, loss_train = sess.run([pred_softmax, accuracy, loss], feed_dict={
    X: X_train, Y:y_train})
_, acc_test, loss_test = sess.run([pred_softmax, accuracy, loss], feed_dict={
    X: X_test, Y:y_test})`
@ohdoughnut ohdoughnut changed the title the problem of training set and test set the problem of training set and testing set Jan 11, 2018
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

1 participant