Skip to content

the problem of training set and testing set  #1

@ohdoughnut

Description

@ohdoughnut

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})`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions