Trait LibLinearProblem

Source
pub trait LibLinearProblem: Clone {
    // Required methods
    fn source_features(&self) -> &[Vec<FeatureNode>];
    fn target_values(&self) -> &[f64];
    fn bias(&self) -> f64;
}
Expand description

Represents a one-to-one mapping of source features to target values.

Source features are represented as sparse vectors of real numbers. Target values are either integers (in classification) or real numbers (in regression).

Required Methods§

Source

fn source_features(&self) -> &[Vec<FeatureNode>]

The feature vectors of each training instance.

Source

fn target_values(&self) -> &[f64]

Target labels/values of each training instance.

Source

fn bias(&self) -> f64

Bias of the input data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§