How to set performance weights for crossentropy in patternnet?

I am training a patternnet on a two-class imbalanced training set, about 20/80.
The crossentropy function (when called directly) allows for specific performance weights to be assigned, and I want to use that to overweight penalties for the rare class.
However, I don't see how I can set performance weights when using crossentropy in a patternnet. I can assign net.performFcn to be 'crossentropy', and have two properties under net.performParam, 'regularization' and 'normalization'.
So, how can performance weights be specified?

답변 (1개)

Greg Heath
Greg Heath 2018년 11월 13일

0 개 추천

See both
help crossentropy
and
doc crossentropy
In the latter see the section on
perfWeights - performance weights
Hope this helps
*Thank you for formaly accepting my answer*
Greg

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2018년 11월 12일

답변:

2018년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by