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

Function register

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

Source from the content-addressed store, hash-verified

82 ind_mat: Vec<Vec<u8>>,
83 n_estimators: usize,
84 max_samples: f64,
85 max_features: f64,
86 random_state: u64,
87 sample_weight: Option<Vec<f64>>,
88) -> PyResult<Py<PyAny>> {
89 let x_mat = matrix_from_rows(x)?;
90
91 let mut clf =
92 openquant::sb_bagging::SequentiallyBootstrappedBaggingClassifier::new(random_state);
93 clf.n_estimators = n_estimators;
94 clf.max_samples = openquant::sb_bagging::MaxSamples::Float(max_samples);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected