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 use gam_data as data;
8
9// `alo` descended into gam-solve (#1521): genuine REML-evidence numerics whose
10// deps are all ≤ gam-solve. Re-exported here so `gam::inference::alo` (named by
11// gam-predict/gam-inference conformal, model_comparison, the CLI) resolves
12// unchanged.
13pub use gam_sae::inference::atom_lens;
14pub use gam_solve::inference::alo;
15pub mod certificate_impls;
16pub mod certificates;
17pub use gam_problem::diagnostics;
18pub use gam_problem::dispersion_cov;
19pub use gam_sae::inference::checkpoint_dynamics;
20pub mod difference_smooth;
21pub mod effects;
22pub mod fisher_rao;
23pub mod functionals;
24pub use gam_sae::inference::harvest;
25pub use gam_terms::inference::higher_order;
26pub mod hmc_io;
27// `hmc_io` is the post-rename home of the NUTS/HMC engine that integration
28// tests and downstream callers still reach as `inference::hmc`. Keep that path
29// resolvable alongside the crate-root `gam::hmc` alias.
30pub use gam_sae::inference::layer_transport;
31pub use gam_terms::inference::lawley;
32pub use hmc_io as hmc;
33pub mod model_comparison;
34// #1521: pg_gate_evidence/pg_moments descended into gam-solve (reached downward
35// by gam_sae::structure_harvest); re-exported here so `gam::inference::{
36// pg_gate_evidence, pg_moments}` resolves unchanged.
37pub use gam_solve::inference::{pg_gate_evidence, pg_moments};
38pub mod gpu_polya_gamma;
39pub mod polya_gamma;
40pub mod posterior;
41pub use gam_models::inference::{
42    full_conformal, generative, model, model_extension, 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;