I'm training a convolutional neural network using pylearn2 library and during all the ephocs, my validation error is consistently higher than the testing error. Is it possible? If so, in what kind of situations?
Can the validation error of a dataset be higher than the test error during the whole process of training a neural network?
2.8k views Asked by SameeraR AtThere are 2 answers
Nicu Tofan
On
Training set is a set of images that are fed to the network, errors are computed on the other end, then the parameters of the network are adjusted based on those errors. Validation set is a set of images that are fed to the network, errors are computed but parameters of the network are NOT adjusted.
Basically, you use validation to see how well the network performs on images it was not trained against.
In this view you should expect in most cases to have a higher error on valid_y_misclass than on train_y_miscalss.
See here for a discussion of the image sets.
Edit: example using pylearn2 notation
Size of train set: 700 examples; size of valid set: 300 examples
After some training (say 5 epochs) the network nails 650 out of 700 examples in the training set and 200 out of 300 in valid set.
As a result, after 5 epochs:
train_y_misclass = (700 - 650) / 700 = 0.07142857142
valid_y_misclass = (300 - 200) / 300 = 0.33333333333
valid_y_misclass > train_y_misclass and this is to be expected.
Related Questions in MACHINE-LEARNING
- How to cluster a set of strings?
- Enforcing that inputs sum to 1 and are contained in the unit interval in scikit-learn
- scikit-learn preperation
- Spark MLLib How to ignore features when training a classifier
- Increasing the efficiency of equipment using Amazon Machine Learning
- How to interpret scikit's learn confusion matrix and classification report?
- Amazon Machine Learning for sentiment analysis
- What Machine Learning algorithm would be appropriate?
- LDA generated topics
- Spectral clustering with Similarity matrix constructed by jaccard coefficient
- Speeding up Viterbi execution
- Memory Error with Classifier fit and partial_fit
- How to find algo type(regression,classification) in Caret in R for all algos at once?
- Difference between weka tool's correlation coefficient and scikit learn's coefficient of determination score
- What are the approaches to the Big-Data problems?
Related Questions in COMPUTER-VISION
- OpenCV algorithm of contours searching and creation of bounding rectagle
- How to make sense (handle) when computes logarithm of zero in prior information
- Matlab code crashes and gives error: Dimension of matrices being concatenated are not consistent
- Haar Cascade classifier does not detect faces in simple frontal pictures
- Face cropping using facial landmarks
- qtimer and opencv running slow
- Simple RGB to Gray program crashes
- Estimating pose of one camera given another with known baseline
- dealing with dimensions in scikit-learn tree.decisiontreeclassifier
- converting matlab code to c code readiness error
- MATLAB ConnectedComponentLabeler does not work in for loop
- Finding camera position without calibration
- StereoSGBM cannot handle negative minDisparity
- How to speed up caffe classifer in python
- HOG Feature extraction
Related Questions in NEURAL-NETWORK
- How to choose good SURF feature keypoints?
- How to avoid overfitting (Encog3 C#)?
- Run out of VRAM using Theano on Amazon cluster
- Calculating equation from image in Java
- Print output of a Theano network
- Torch Lua: Why is my gradient descent not optimizing the error?
- How can I train a neural (pattern recognition) network multiple times in matlab?
- Using Convolution Neural Net with Lasagne in Python error
- Random number of hidden units improves accuracy/F-score on test set
- Matlab example code for deep belief network for classification
- Pybrain Reinforcement Learning Example
- How to speed up caffe classifer in python
- Opencv mlp Same Data Different Results
- Word2Vec Data Setup
- How can I construct a Neural Network in Matlab with matrix of features extracted from images?
Related Questions in DEEP-LEARNING
- [Caffe]: Check failed: ShapeEquals(proto) shape mismatch (reshape not set)
- Caffe net.predict() outputs random results (GoogleNet)
- Implementation of convolutional sparse coding in deep networks frameworks
- Matlab example code for deep belief network for classification
- Two errors while running Caffe
- How to speed up caffe classifer in python
- Caffe Framework Runtest Core dumped error
- Scan function from Theano replicates non_sequences shared variables
- Why bad accuracy with neural network?
- Word2Vec Sentiment Classification with R and H2O
- What is gradInput and gradOutput in Torch7's 'nn' package?
- Error while drawing net in Caffe
- How does Caffe determine the number of neurons in each layer?
- Conclusion from PCA of dataset
- Google Deep Dream art: how to pick a layer in a neural network and enhance it
Related Questions in PYLEARN
- Pylearn2 example for time series or sequence prediction
- cannot run python make_dataset.py -pylearn2 - training model
- import theano results in ImportError
- pylearn2 CSVDataset TypeError
- pkl file for customized image data in pylearn2
- installing pylearn2 - ImportError: No module named six.moves
- Can the validation error of a dataset be higher than the test error during the whole process of training a neural network?
- Missing .so files when installing pylearn2
- create a single layer neural network with pylearn2
- Convert image data to grayscale from npy file in pylearn2
- Using Global Contrast Normalization - Python pylearn2
- How can I train my pylearn2 neural network on multiple target variables?
- How to fine tune hyper-parameters of momentum optimizer?
- What's the reason behind "extracting 8x8 patches" in Restricted Boltzman Machine?
- predictions using pylearn2 models
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
moving the comment to an answer; modifying my previous answer seemed wrong
The full dataset may not be properly shuffled so the examples in the test set may be easier to classify.
Doing the experiment again with examples redistributed among the train / valid / test subsets would show if this is the case.