pub struct TreeValidator;Expand description
Validation functions for decision trees
Implementations§
Source§impl TreeValidator
 
impl TreeValidator
Sourcepub fn validate_input(
    x: &ArrayView2<'_, f64>,
    y: &ArrayView1<'_, f64>,
) -> Result<()>
 
pub fn validate_input( x: &ArrayView2<'_, f64>, y: &ArrayView1<'_, f64>, ) -> Result<()>
Validate input data dimensions
Sourcepub fn validate_fitted(tree: &DecisionTree<Trained>) -> Result<()>
 
pub fn validate_fitted(tree: &DecisionTree<Trained>) -> Result<()>
Validate that the tree has been fitted
Sourcepub fn validate_prediction_input(
    tree: &DecisionTree<Trained>,
    x: &ArrayView2<'_, f64>,
) -> Result<()>
 
pub fn validate_prediction_input( tree: &DecisionTree<Trained>, x: &ArrayView2<'_, f64>, ) -> Result<()>
Validate prediction input dimensions
Auto Trait Implementations§
impl Freeze for TreeValidator
impl RefUnwindSafe for TreeValidator
impl Send for TreeValidator
impl Sync for TreeValidator
impl Unpin for TreeValidator
impl UnwindSafe for TreeValidator
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
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