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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! # solow-cv
//!
//! Cross-validation, resampling, and bootstrap for the Solow statistical
//! stack.
//!
//! The crate provides three composable layers:
//!
//! 1. **Splitters** — [`KFold`], [`StratifiedKFold`], [`TimeSeriesSplit`],
//! [`LeaveOneOut`], and [`ShuffleSplit`] behind the shared [`Splitter`]
//! trait. Every splitter emits validated `Vec<Split>` fold lists that a
//! caller can iterate, index, or run in parallel.
//!
//! 2. **Cross-validated scoring** — [`cross_val_score`] runs a
//! `fit_and_score` callback across every fold and returns the per-fold
//! scores with mean, unbiased standard deviation, and standard error.
//!
//! 3. **Bootstrap confidence intervals** — [`bootstrap_ci`] resamples with
//! replacement and returns a percentile, reverse-percentile ("basic"), or
//! Efron BCa confidence interval for any scalar statistic of a sample.
//!
//! ```
//! use ndarray::array;
//! use solow_cv::{KFold, Splitter};
//!
//! let y = array![1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0];
//! let kf = KFold::new(5)?.shuffle(false);
//! for split in kf.split(y.len())? {
//! let (train, test) = (split.train, split.test);
//! assert_eq!(train.len() + test.len(), y.len());
//! // Fit on `y.select(Axis(0), &train)`; score on the test rows.
//! }
//! # Ok::<_, solow_core::Error>(())
//! ```
//!
//! ## Determinism
//!
//! Random splits and bootstrap resamples use a well-tested 64-bit
//! linear-congruential generator (Numerical Recipes' MMIX constants),
//! seeded by the caller. The stream is bit-for-bit portable across
//! platforms; a fixed seed always produces the same folds and replicates.
pub use ;
pub use ;
pub use cross_val_score_parallel;
pub use ;
pub use ;
/// Commonly used imports.