hessboost 0.2.2

Fast, deterministic gradient boosting (GBDT) in Rust: conformal intervals, explainable boosting machines, distributional boosting, tree-based diffusion, and XGBoost model interchange
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Crate-wide unit-test helpers (compiled only for `cargo test`).

use crate::data::DMatrix;

/// A dense `rows × cols` matrix with one label per row.
pub(crate) fn labeled_dense(x: &[f32], rows: usize, cols: usize, y: &[f32]) -> DMatrix {
    DMatrix::from_dense(x, rows, cols)
        .unwrap()
        .with_labels(y)
        .unwrap()
}