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

What does the train accuracy mean? What are the test samples? #877

Closed
Imorton-zd opened this issue Oct 23, 2015 · 1 comment
Closed

What does the train accuracy mean? What are the test samples? #877

Imorton-zd opened this issue Oct 23, 2015 · 1 comment

Comments

@Imorton-zd
Copy link

I don't know the train accuracy shown on console when operating cnn in keras. In terms of the train accuracy, are one batch samples taken as train samples? Which part is taken as test samples? Many thanks!

@farizrahman4u
Copy link
Contributor

You can see 2 accuracy values (and 2 loss values) while training..Train accuracy and train loss are calculated on the go, during training. These figures show how well your network is doing on the data it is being trained. Training accuracy usually keeps increasing throughout training.

After every epoch, your model is tested against a validation set, (or test samples), and validation loss and accuracy are calculated. These numbers tell you how good your model is at predicting outputs for inputs it has never seen before. Validation accuracy increases initially and drops as you over fit.

The train and test sets are explicitly given to the fit method as following:

model.fit(X_train, y_train, batch_size=batch_size, 
nb_epoch=nb_epoch, show_accuracy=True, 
validation_data=(X_test, y_test))

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