1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! The model interface and its life cycle, shared by every engine (GLM,
//! GAM, neural networks, boosting adapters, Bayesian models). See
//! `docs/design/models.md`.
//!
//! - [`Family`] and [`Link`]: exponential dispersion families and link
//! functions, the likelihoods and losses engines share;
//! - [`Terms`], [`Coding`] and [`Design`]: model terms, factor coding
//! learned on training data, and the design matrix with offset and
//! weights;
//! - [`Model`] and [`Fitted`]: fit, predict, and joint predictive
//! distributions;
//! - [`metrics`]: deviance, Gini, lift, CRPS, coverage;
//! - [`resample`]: k-fold, grouped and time-ordered splits,
//! cross-validation and grid search;
//! - [`artifact`]: the envelope of saved models (format, version,
//! provenance) and its JSON helpers;
//! - [`simulate`]: predictive distributions from fitted means, for engines
//! that give only a mean per row (the boosting adapters).
//!
//! This crate has no heavy dependencies; engines live in their own crates.
pub use ;
pub use Family;
pub use Link;
pub use ;