pub struct TrainedGraphSemiSupervisedSVM {
pub coef_: Array2<f64>,
pub intercept_: Array1<f64>,
pub classes_: Array1<i32>,
pub n_features_in_: usize,
pub training_data_: Array2<f64>,
pub graph_matrix_: Array2<f64>,
pub unlabeled_predictions_: Array1<f64>,
/* private fields */
}Expand description
Trained Graph-based Semi-supervised SVM model
Fields§
§coef_: Array2<f64>Model weights (coefficients)
intercept_: Array1<f64>Intercept terms
classes_: Array1<i32>Unique class labels
n_features_in_: usizeNumber of features
training_data_: Array2<f64>Training data (labeled + unlabeled)
graph_matrix_: Array2<f64>Graph adjacency matrix
unlabeled_predictions_: Array1<f64>Predicted labels for unlabeled data
Implementations§
Source§impl TrainedGraphSemiSupervisedSVM
impl TrainedGraphSemiSupervisedSVM
Sourcepub fn decision_function(&self, x: &Array2<f64>) -> Result<Array2<f64>>
pub fn decision_function(&self, x: &Array2<f64>) -> Result<Array2<f64>>
Compute decision function values
Sourcepub fn graph_matrix(&self) -> &Array2<f64>
pub fn graph_matrix(&self) -> &Array2<f64>
Get the graph adjacency matrix
Sourcepub fn unlabeled_predictions(&self) -> &Array1<f64>
pub fn unlabeled_predictions(&self) -> &Array1<f64>
Get the predictions for unlabeled data from training
Sourcepub fn training_data(&self) -> &Array2<f64>
pub fn training_data(&self) -> &Array2<f64>
Get the combined training data (labeled + unlabeled)
Trait Implementations§
Source§impl Clone for TrainedGraphSemiSupervisedSVM
impl Clone for TrainedGraphSemiSupervisedSVM
Source§fn clone(&self) -> TrainedGraphSemiSupervisedSVM
fn clone(&self) -> TrainedGraphSemiSupervisedSVM
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<i32>, Dim<[usize; 1]>>> for TrainedGraphSemiSupervisedSVM
impl Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<i32>, Dim<[usize; 1]>>> for TrainedGraphSemiSupervisedSVM
Source§fn predict(&self, x: &Array2<f64>) -> Result<Array1<i32>>
fn predict(&self, x: &Array2<f64>) -> Result<Array1<i32>>
Make predictions on the provided data
Source§fn predict_with_uncertainty(
&self,
x: &X,
) -> Result<(Output, UncertaintyMeasure), SklearsError>
fn predict_with_uncertainty( &self, x: &X, ) -> Result<(Output, UncertaintyMeasure), SklearsError>
Make predictions with confidence intervals
Auto Trait Implementations§
impl Freeze for TrainedGraphSemiSupervisedSVM
impl RefUnwindSafe for TrainedGraphSemiSupervisedSVM
impl Send for TrainedGraphSemiSupervisedSVM
impl Sync for TrainedGraphSemiSupervisedSVM
impl Unpin for TrainedGraphSemiSupervisedSVM
impl UnsafeUnpin for TrainedGraphSemiSupervisedSVM
impl UnwindSafe for TrainedGraphSemiSupervisedSVM
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more