Deep learning softmax classification posterior probability calculated from validation/test set
2 次查看(过去 30 天)
显示 更早的评论
Hi All
Im working on LSTM classification for a physical system in applied opics and using this example
https://www.mathworks.com/help/deeplearning/examples/classify-sequence-data-using-lstm-networks.html
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 个评论
Image Analyst
2019-7-11
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
https://www.mathworks.com/help/deeplearning/examples/classify-sequence-data-using-lstm-networks.html
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
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discriminant Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!