mixle.reason.anchor_harness moduleΒΆ
Runnable geoscience harness for cross-modal target inference.
The harness infers a synthetic subsurface ore-grade target from two heterogeneous evidence modalities: a categorical geochemistry observation and a potential-fields gravity reading. It composes existing reasoning primitives into one measured workflow:
mixle.reason.modalityrepresents geochemistry and gravity as typedModalityViewobjects.mixle.reason.cycle_consistencyfits conditional transports and checks whether a hop should abstain.mixle.reason.belief_walkcomposes the gravity-to-density and density-to-grade hops by Monte Carlo belief propagation, with calibration checked by hop count throughcoverage_by_hop_count().mixle.reason.task_projectionprojects the same ore-grade belief for two receivers: one that needs an exact tier and one that needs a binary drilling decision.
The data are synthetic and seeded, using a linear-Gaussian generative process with coefficients hidden from the fitted transports. The report is checkable against ground truth and records measured coverage, abstention, and error.
- class AnchorHarnessReport(modalities, hop_names, coverage_by_hop, abstained_site_ids, abstain_rate, driller_projection_components, scout_projection_components, driller_readout, scout_readout, frontier_mae, walk_mae, frontier_is_calibrated, walk_is_calibrated, notes=<factory>)[source]
Bases:
objectMeasured report for the cross-modal geoscience harness.
- run_anchor_harness(*, n_train=2000, n_test=200, seed=0)[source]
Run the cross-modal harness and return the measured report.
Requires
torch(the transport fits do); raises the underlyingImportErrorif it is absent, same as other neural transport fitting paths.