TransWikia.com

How to increase model's test accuracy?

Data Science Asked on July 10, 2021

I am using the InceptionV3 model for training. Here is the link for the code (https://github.com/maxmelnick/tensorflow/blob/no_random/tensorflow/examples/image_retraining/retrain.py) Initially I have a small size dataset. So, I used the augmentation technique to increase the size of the dataset.

While training phase dataset was divided into training, validation, and testing. During the training phase, it shows 96% accuracy for 11 classes. But When I predict any new input image(Unseen data) it gave 56% accuracy. What’s the problem lies with the model?

I have already used Dropout, Cross-validation, OverSampling techniques but not achieved good results over the new input image.

Parameters used while training.

Training Samples – 800 images in each class

  • Training Samples – 70%
  • Validation Samples – 20%
  • Testing Samples – 10%

Testing Samples (Unseen data other than Training Samples) – 51 images in each class

Epochs – 10,000

Thank You.

One Answer

While Yolov3 is a great model it may underperform for certain datasets. A simple example would be this. Take a model and train it on cifar 10. The same model might significantly perform lower on cifar 100 or imagenet!

Things you could do to improve your model:

  1. Introduce Batch or group normalization?
  2. Study the data better, if possible see if the data is used elsewhere and how they approach it.
  3. Epochs isn't the problem, so that should stay the same.

If nothing continues to work then you might have to opt for some other model. Try yolov5 or rcnn!

Answered by Aymuos on July 10, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP