Filter löschen
Filter löschen

Deep learning softmax classification posterior probability calculated from validation/test set

1 Ansicht (letzte 30 Tage)
Hi All
Im working on LSTM classification for a physical system in applied opics and using this example
However, for our particular system/data we always have slightly overfit on training data before accuracy on validation data is optimum (due to the nature of the data). Hence our probability given by the trained model always overestimates our certainty in prediction (on both validation and independent test set). We like to correct for this by recalculating the posterior probability. Can any advise on how it is possible to calculate confidence in prediction (or posterior probability) from a LSTM on the validation or test data instead of the training data that is given by the trained model?
The problem is that unfortunately the classify functions does not allow this
[YPred,scores] = classify(net,sequences) or
[updatedNet,YPred,scores] = classifyAndUpdateState(___)
as they outputs posterior probablity (scores) calculated from training data
Any advise it highly appreciated
Mads
  1 Kommentar
Image Analyst
Image Analyst am 11 Jul. 2019
Original question, in case user edits it away:
Hi All
Im working on LSTM classification for a physical system in applied opics and using this example
However, for our particular system/data we always have slightly overfit on training data before accuracy on validation data is optimum (due to the nature of the data). Hence our probability given by the trained model always overestimates our certainty in prediction (on both validation and independent test set). We like to correct for this by recalculating the posterior probability. Can any advise on how it is possible to calculate confidence in prediction (or posterior probability) from a LSTM on the validation or test data instead of the training data that is given by the trained model?
The problem is that unfortunately the classify functions does not allow this
[YPred,scores] = classify(net,sequences) or
[updatedNet,YPred,scores] = classifyAndUpdateState(___)
as they outputs posterior probablity (scores) calculated from training data
Any advise it highly appreciated
Mads

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

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

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by