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
- Trained ML model with the camera module is not giving predictions
- Keras similarity calculation. Enumerating distance between two tensors, which indicates as lists
- How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
- How to predict input parameters from target parameter in a machine learning model?
- The training accuracy and the validation accuracy curves are almost parallel to each other. Is the model overfitting?
- ImportError: cannot import name 'HuggingFaceInferenceAPI' from 'llama_index.llms' (unknown location)
- Which library can replace causal_conv1d in machine learning programming?
- Fine-Tuning Large Language Model on PDFs containing Text and Images
- Sketch Guided Text to Image Generation
- My ICNN doesn't seem to work for any n_hidden
- Optuna Hyperband Algorithm Not Following Expected Model Training Scheme
- How can I resolve this error and work smoothly in deep learning?
- ModuleNotFoundError: No module named 'llama_index.node_parser'
- Difference between model.evaluate and metrics.accuracy_score
- Give Bert an input and ask him to predict. In this input, can Bert apply the first word prediction result to all subsequent predictions?
Related Questions in COMPUTER-VISION
- Trained ML model with the camera module is not giving predictions
- what's the difference between "nn layout" and "nt layout"
- Sketch Guided Text to Image Generation
- Pneumonia detection, using transfer learning
- Search for an icon on an image OpenCV
- DJI Tello won't follow me
- Unable to open shape_predictor_68_face_landmarks.dat
- Line Segmentation Problem: How to detect lines and draw bounding box of that line on handwritten letters Using CV2
- The regression problem of predicting multiple outputs from two-dimensional inputs
- Detecting Circles and Ellipses from Point Arrays in Java
- How to generate a VPI warpmap for polynomial distortion correction?
- Finding 3D camera location from a known 2D symbol inside an image
- How can I overlay a 3D model onto a detected object in real-time using computer vision?
- CUDA driver initialization failed, you might not have a CUDA gpu
- Implementing Image Processing for Dimension Measurement in Arduino-based Packaging System
Related Questions in NEURAL-NETWORK
- Influence of Unused FFN on Model Accuracy in PyTorch
- How to train a model with CSV files of multiple patients?
- Does tensorflow have a way of calculating input importance for simple neural networks
- My ICNN doesn't seem to work for any n_hidden
- a problem for save and load a pytorch model
- config QConfig in pytorch QAT
- How can I convert a flax.linen.Module to a torch.nn.Module?
- Spiking neural network on FPGA
- Error while loading .keras model: Layer node index out of bounds
- Matrix multiplication issue in a Bidirectional LSTM Model
- Recommended way to use Gymnasium with neural networks to avoid overheads in model.fit and model.predict
- Loss is not changing. Its remaining constant
- Relationship Between Neural Network Distances and Performance
- Mapping a higher dimension tensor into a lower one: (B, F, D) -> (B, F-n, D) in PyTorch
- jax: How do we solve the error: pmap was requested to map its argument along axis 0, which implies that its rank should be at least 1, but is only 0?
Related Questions in DEEP-LEARNING
- Influence of Unused FFN on Model Accuracy in PyTorch
- How to train a model with CSV files of multiple patients?
- Does tensorflow have a way of calculating input importance for simple neural networks
- What is the alternative to module: tf.keras.preprocessing?
- Which library can replace causal_conv1d in machine learning programming?
- My MSE and MAE are low, but my R2 is not good, how to improve it?
- Sketch Guided Text to Image Generation
- ValueError: The shape of the target variable and the shape of the target value in `variable.assign(value)` must match
- a problem for save and load a pytorch model
- Optuna Hyperband Algorithm Not Following Expected Model Training Scheme
- How can I resolve this error and work smoothly in deep learning?
- Difference between model.evaluate and metrics.accuracy_score
- Integrating Mesonet algorithm with a webUI for deepfake detection model
- How can i edit the "wake-word-detection notebook" on coursera so it fit my own word?
- PyTorch training on M2 GPU slower than Colab CPU
Related Questions in PYLEARN
- ModuleNotFoundError: No module named pylearn2.space
- How to fine tune hyper-parameters of momentum optimizer?
- installing pylearn2 - ImportError: No module named six.moves
- Missing .so files when installing pylearn2
- pkl file for customized image data in pylearn2
- Pylearn2: MLP model with my own data
- predictions using pylearn2 models
- Pre-training ANN with RBM in pylearn2
- Adding L2 regularization to SGD trainer in MLP from pylearn2/Theano
- Visualize weights of deep neural network in scikit-neuralnetwork
- How can I train my pylearn2 neural network on multiple target variables?
- Using Global Contrast Normalization - Python pylearn2
- Ubuntu 14.04 - Pylearn2 installation : nvcc compiler not found on $PATH
- Pylearn2 example for time series or sequence prediction
- Can the validation error of a dataset be higher than the test error during the whole process of training a neural network?
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.