필터 지우기
필터 지우기

Can you please guide utilizing Validation Data along with an image data store?

조회 수: 2 (최근 30일)
I'm using a data store of 50 k images of Breast Cancer.
I want to verify if my training learning is susceptible to overfitting.
But I don't understand, How to use validation data.
This my script without validation data:

채택된 답변

Amanjit Dulai
Amanjit Dulai 2023년 6월 5일
You can specify validation data in the training options with the ValidationData option. Below I've used your test data set, but you probably might want to create a separate validation set from your original data:
opts = trainingOptions("sgdm", ...
"InitialLearnRate", 0.0001, ...
"MaxEpoch", 10, ...
"Plots", "training-progress", ...
"ValidationData", resizeBreastCancerTest);
  댓글 수: 4
Matthieu
Matthieu 2023년 6월 9일
Thanks for your assistance.
I understand your point of view.
I had another question I tried my script.
However, my training progress is not efficient. I would like to know if I'm in a case of overfitting. Could you please give me some advice in order to improve the results?
Amanjit Dulai
Amanjit Dulai 2023년 6월 12일
There are a few things you could try.
  • The initial learning rate of 0.0001 is quite low. You could try increasing it.
  • Alternatively, you could try using the ADAM algorithm for training, which tends to be less sensitive to hyperparameters. You can do this by changing "sgdm" in the call to trainingOptions to "adam".
  • You could train for more epochs. 10 epochs is a fairly low number.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by