Trait CategoricalFeatureHelpers

Source
pub trait CategoricalFeatureHelpers {
    // Provided methods
    fn create_feature_map(
        &self,
        features: &[String],
        array: &[Vec<String>],
    ) -> Result<FeatureMap, DriftError> { ... }
    fn convert_strings_to_ndarray_f32(
        &self,
        features: &Vec<String>,
        array: &[Vec<String>],
        feature_map: &FeatureMap,
    ) -> Result<ArrayBase<OwnedRepr<f32>, Dim<[usize; 2]>>, DriftError> { ... }
    fn convert_strings_to_ndarray_f64(
        &self,
        features: &Vec<String>,
        array: &[Vec<String>],
        feature_map: &FeatureMap,
    ) -> Result<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, DriftError> { ... }
}

Provided Methods§

Source

fn create_feature_map( &self, features: &[String], array: &[Vec<String>], ) -> Result<FeatureMap, DriftError>

Source

fn convert_strings_to_ndarray_f32( &self, features: &Vec<String>, array: &[Vec<String>], feature_map: &FeatureMap, ) -> Result<ArrayBase<OwnedRepr<f32>, Dim<[usize; 2]>>, DriftError>

Source

fn convert_strings_to_ndarray_f64( &self, features: &Vec<String>, array: &[Vec<String>], feature_map: &FeatureMap, ) -> Result<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, DriftError>

Implementors§