Type Alias linfa::dataset::DatasetPr

source ·
pub type DatasetPr<D, L> = DatasetBase<ArrayBase<OwnedRepr<D>, Ix2>, CountedTargets<L, ArrayBase<OwnedRepr<Pr>, Ix3>>>;
Expand description

DatasetPr

Dataset with probabilities as targets. Useful for multiclass probabilities. It stores records as an Array2 of elements of type D, and targets as an Array3 of elements of type Pr

Aliased Type§

struct DatasetPr<D, L> {
    pub records: ArrayBase<OwnedRepr<D>, Dim<[usize; 2]>>,
    pub targets: CountedTargets<L, ArrayBase<OwnedRepr<Pr>, Dim<[usize; 3]>>>,
    pub weights: ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>,
    /* private fields */
}

Fields§

§records: ArrayBase<OwnedRepr<D>, Dim<[usize; 2]>>§targets: CountedTargets<L, ArrayBase<OwnedRepr<Pr>, Dim<[usize; 3]>>>§weights: ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>