Can the New Test Data be looped into the Training Data after being Classified by the CNN model?

Hello,
I am working on a CNN model but I have a limited dataset to work with. I was wondering if there is a chance that after training the CNN model on a specific number of images, when I test it against a new set of images, these new classified images can be looped into the training set. So that when the model is run again it trains with these new images as a part of the training data set.
Thanks in advance.

回答 (1 件)

Harsha Priya Daggubati
Harsha Priya Daggubati 2020 年 7 月 27 日
Hi,
It is generally advised to keep training and test sets explicit. I can think of one possible workaround, since your dataset is of images, you can augment your dataset using 'imageDataAugmenter' and create an augmentedImageDatastore using it to train your network.
Take a look at these links for more details:
Hope this helps!

7 件のコメント

Vinay Chawla
Vinay Chawla 2020 年 7 月 27 日
Thank you for responding.
The training and test datasets are explicit. What I meant by looping the data is that when I test my model with a completely new dataset after training and validation. I want that dataset to be a part of training for the next "NEW TEST" dataset.
I really hope you get what I mean.
This line sounds ambiguous:
"I want that dataset to be a part of training for the next "NEW TEST" dataset"
part of training for next test set, how is it possible?
Vinay Chawla
Vinay Chawla 2020 年 7 月 27 日
That is what I am trying to figure out.
So say I train my model on 100 images and 70 are for training and 30 for validation. Afterwards, I am using a new set of images say 10, and after classifying them I want them to be added to the initial 100 images used for the model with some lines of coding so that my training data expands after each trial.
Does that make sense?
So, you are thinking of adding correctly classified test set data to your traning data and thus use the resulting training dataset to train your model again.
I guess you can go ahead this way too, what is the issue you are facing?
Vinay Chawla
Vinay Chawla 2020 年 7 月 27 日
There is no issue but my study is to classify pavement distresses and the more and varied images I have, the more features the model will learn, because they occur in distinct patterns on different pavements. So,The idea is to expand the training dataset to increase learning and prediction efficiency. If I use the resulting training dataset then the model learns from the same images, correct?
Yeah, to my knowledge your network would be retrained using mostly similar datasets.
Vinay Chawla
Vinay Chawla 2020 年 7 月 27 日
Okay.
Thank you for your assistance.
Appreciate it.

この質問は閉じられています。

質問済み:

2020 年 7 月 24 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by