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§
Sourcefn source_features(&self) -> &[Vec<FeatureNode>]
fn source_features(&self) -> &[Vec<FeatureNode>]
The feature vectors of each training instance.
Sourcefn target_values(&self) -> &[f64]
fn target_values(&self) -> &[f64]
Target labels/values of each training instance.
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.