Filter löschen
Filter löschen

How to set performance weights for crossentropy in patternnet?

2 Ansichten (letzte 30 Tage)
Mike P
Mike P am 12 Nov. 2018
Beantwortet: Greg Heath am 13 Nov. 2018
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?

Antworten (1)

Greg Heath
Greg Heath am 13 Nov. 2018
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

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by