MCPcopy Create free account
hub / github.com/Open-Quant/openquant / register

Function register

crates/pyopenquant/src/ensemble.rs:113–127  ·  view source on GitHub ↗
(py: Python<'_>, parent: &Bound<'_, PyModule>)

Source from the content-addressed store, hash-verified

111/// differ in length.
112#[pyfunction(name = "sequential_bootstrap_sample_indices")]
113fn ens_sequential_bootstrap_sample_indices(
114 ind_mat: Vec<Vec<u8>>,
115 sample_size: usize,
116 seed: u64,
117) -> PyResult<Vec<usize>> {
118 openquant::ensemble_methods::sequential_bootstrap_sample_indices(&ind_mat, sample_size, seed)
119 .map_err(to_py_err)
120}
121
122/// Element-wise mean of the models' predictions: the bagged regression forecast (AFML 6.3).
123///
124/// Parameters
125/// ----------
126/// per_model_predictions : list[list[float]]
127/// One row per model, one column per observation; every row the same length.
128///
129/// Returns
130/// -------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected