Training CNN on training set with different numbers of images in the training set

조회 수: 3 (최근 30일)
Hi, I'm doing transfer learning to train squeezenet on a database of microcopy images. I have two classes that have different numbers of images (class 1: 200, class2: 400). Is there a way in Matlab to assign lower weight to the images in class 2, so that the classification is not biased towards the most numerous class? Thank you

채택된 답변

Srivardhan Gadila
Srivardhan Gadila 2021년 3월 23일
You can enable ClassWeights for classificationLayer or you can also use focalLossLayer.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by