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_solve::inference::alo;
15pub use gam_sae::inference::atom_lens;
16pub mod certificate_impls;
17pub mod certificates;
18pub use gam_sae::inference::checkpoint_dynamics;
19pub use gam_problem::diagnostics;
20pub use gam_problem::dispersion_cov;
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 hmc_io as hmc;
30pub use gam_terms::inference::lawley;
31pub use gam_sae::inference::layer_transport;
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::{full_conformal, generative, model, model_payload_builders, predict_io};
42pub use gam_terms::inference::formula_dsl;
43pub mod probability;
44pub use gam_sae::inference::probe_runner;
45pub mod quadrature;
46// `residual_factor` descended into gam-solve (#1521): the structured-residual
47// covariance estimator (#974) whose deps are all ≤ gam-solve (`gam_problem::RowMetric`
48// + `gam-linalg`). Re-exported here so `gam::inference::residual_factor` (named by
49// `tests/identifiability/misc/structured_residual_974.rs`) resolves unchanged.
50pub use gam_solve::inference::residual_factor;
51pub mod rho_posterior;
52pub use gam_sae::inference::riesz;
53pub use gam_solve::row_sampling_measure as row_measure;
54pub mod row_metric;
55pub mod sample;
56pub mod skovgaard;
57pub use gam_terms::inference::smooth_test;
58pub use gam_sae::inference::steering;
59pub use gam_terms::inference::structure_evidence;
60pub mod truncated_gaussian;