tbp.monty.frameworks.models.mixins#
tbp.monty.frameworks.models.mixins.no_reset_evidence#
- class HypothesesUpdaterGraphTelemetry(hypotheses_updater: dict[str, Any], evidence: npt.NDArray[np.float64], rotations: npt.NDArray[np.float64], locations: npt.NDArray[np.float64], pose_errors: npt.NDArray[np.float64]) None[source]#
Bases:
objectTelemetry from HypothesesUpdater for a single graph.
- __init__(hypotheses_updater, evidence, rotations, locations, pose_errors)#
- evidence: npt.NDArray[np.float64]#
The hypotheses evidence scores.
- hypotheses_updater: dict[str, Any]#
Any telemetry from the hypotheses updater.
- locations: npt.NDArray[np.float64]#
Locations of the hypotheses.
- pose_errors: npt.NDArray[np.float64]#
Rotation errors relative to the target pose.
- rotations: npt.NDArray[np.float64]#
Rotations of the hypotheses.
- class TheoreticalLimitLMLoggingMixin[source]#
Bases:
objectMixin that adds theoretical limit and pose error logging for learning modules.
- This mixin augments the learning module with methods to compute and log:
The maximum evidence score for each object.
The theoretical lower bound of pose error on the target object, assuming Monty had selected the best possible hypothesis (oracle performance).
The actual pose error of the most likely hypothesis (MLH) on the target object.
These metrics are useful for analyzing the performance gap between the model’s current inference and its best achievable potential given its internal hypotheses.
- Compatible with:
EvidenceGraphLM
- HypothesesUpdaterTelemetry#
HypothesesUpdaterGraphTelemetry indexed by graph ID.
alias of
Dict[str,HypothesesUpdaterGraphTelemetry]