UncertainPrediction
- class UncertainPrediction(score: Tensor, uncertainty: Tensor)[source]
Bases:
NamedTuple
A pair of predicted scores and corresponding uncertainty.
Since the uncertainty scores come from Monte-Carlo dropout, they are guaranteed to be non-negative with larger scores indicating higher uncertainty.
Create new instance of UncertainPrediction(score, uncertainty)
Attributes Summary
The scores
The uncertainty, in the same shape as scores
Methods Summary
from_scores
(scores)Make an instance from scores.
Attributes Documentation
Methods Documentation