Skip to main content

gam_inference/
lib.rs

1// The encoded-dataset layer was hoisted into the `gam-data` foundation crate
2// and is re-exported at the crate root as `gam::data`. It used to live here as
3// `inference::data`, and a large body of integration tests (plus any external
4// consumer) still names `gam::inference::data`. Keep that path valid by
5// aliasing the relocated crate so the extraction does not silently drop a
6// public module path it inherited.
7pub mod util;
8pub use gam_data as data;
9
10// `alo` descended into gam-solve (#1521): genuine REML-evidence numerics whose
11// deps are all ≤ gam-solve. Re-exported here so `gam::inference::alo` (named by
12// gam-predict/gam-inference conformal, model_comparison, the CLI) resolves
13// unchanged.
14pub use gam_sae::inference::atom_lens;
15pub use gam_solve::inference::alo;
16pub mod certificate_impls;
17pub mod certificates;
18pub use gam_problem::diagnostics;
19pub use gam_problem::dispersion_cov;
20pub use gam_sae::inference::checkpoint_dynamics;
21pub mod fisher_rao;
22pub mod functionals;
23pub use gam_sae::inference::harvest;
24pub use gam_terms::inference::higher_order;
25pub mod hmc_io;
26// `hmc_io` is the post-rename home of the NUTS/HMC engine that integration
27// tests and downstream callers still reach as `inference::hmc`. Keep that path
28// resolvable alongside the crate-root `gam::hmc` alias.
29pub use gam_sae::inference::layer_transport;
30pub use gam_terms::inference::lawley;
31pub use hmc_io as hmc;
32pub mod model_comparison;
33// #1521: pg_gate_evidence/pg_moments descended into gam-solve (reached downward
34// by gam_sae::structure_harvest); re-exported here so `gam::inference::{
35// pg_gate_evidence, pg_moments}` resolves unchanged.
36pub use gam_solve::inference::{pg_gate_evidence, pg_moments};
37pub mod gpu_polya_gamma;
38pub mod polya_gamma;
39pub mod polya_gamma_core;
40pub mod posterior;
41pub use gam_models::inference::{
42    full_conformal, generative, model, model_payload_builders, predict_io,
43};
44pub use gam_terms::inference::formula_dsl;
45pub mod probability;
46pub use gam_sae::inference::probe_runner;
47pub mod quadrature;
48// `residual_factor` descended into gam-solve (#1521): the structured-residual
49// covariance estimator (#974) whose deps are all ≤ gam-solve (`gam_problem::RowMetric`
50// + `gam-linalg`). Re-exported here so `gam::inference::residual_factor` (named by
51// `tests/identifiability/misc/structured_residual_974.rs`) resolves unchanged.
52pub use gam_solve::inference::residual_factor;
53pub mod rho_posterior;
54pub use gam_sae::inference::riesz;
55pub use gam_solve::row_sampling_measure as row_measure;
56pub mod row_metric;
57pub mod sample;
58pub mod skovgaard;
59pub use gam_sae::inference::steering;
60pub use gam_terms::inference::smooth_test;
61pub use gam_terms::inference::structure_evidence;
62pub mod truncated_gaussian;