pub struct LogitBoostClassifier<State = Untrained> { /* private fields */ }Expand description
LogitBoost Classifier
Implementations§
Source§impl LogitBoostClassifier<Untrained>
impl LogitBoostClassifier<Untrained>
Sourcepub fn n_estimators(self, n_estimators: usize) -> Self
pub fn n_estimators(self, n_estimators: usize) -> Self
Set the number of boosting iterations
Sourcepub fn learning_rate(self, learning_rate: Float) -> Self
pub fn learning_rate(self, learning_rate: Float) -> Self
Set the learning rate
Sourcepub fn random_state(self, random_state: u64) -> Self
pub fn random_state(self, random_state: u64) -> Self
Set the random state for reproducible results
Source§impl LogitBoostClassifier<Trained>
impl LogitBoostClassifier<Trained>
Sourcepub fn estimators(&self) -> &[DecisionTreeRegressor<Trained>]
pub fn estimators(&self) -> &[DecisionTreeRegressor<Trained>]
Get the fitted base estimators
Sourcepub fn estimator_weights(&self) -> &Array1<Float>
pub fn estimator_weights(&self) -> &Array1<Float>
Get the weights for each estimator
Sourcepub fn n_features_in(&self) -> usize
pub fn n_features_in(&self) -> usize
Get the number of input features
Trait Implementations§
Source§impl<State: Clone> Clone for LogitBoostClassifier<State>
impl<State: Clone> Clone for LogitBoostClassifier<State>
Source§fn clone(&self) -> LogitBoostClassifier<State>
fn clone(&self) -> LogitBoostClassifier<State>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<State: Debug> Debug for LogitBoostClassifier<State>
impl<State: Debug> Debug for LogitBoostClassifier<State>
Source§impl Default for LogitBoostClassifier<Untrained>
impl Default for LogitBoostClassifier<Untrained>
Source§impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for LogitBoostClassifier<Untrained>
impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for LogitBoostClassifier<Untrained>
Source§type Fitted = LogitBoostClassifier<Trained>
type Fitted = LogitBoostClassifier<Trained>
The fitted model type
Source§fn fit(self, x: &Array2<Float>, y: &Array1<Float>) -> Result<Self::Fitted>
fn fit(self, x: &Array2<Float>, y: &Array1<Float>) -> Result<Self::Fitted>
Fit the model to the provided data with validation
Source§fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
Fit with custom validation and early stopping
Source§impl Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for LogitBoostClassifier<Trained>
impl Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for LogitBoostClassifier<Trained>
Source§fn predict(&self, x: &Array2<Float>) -> Result<Array1<Float>>
fn predict(&self, x: &Array2<Float>) -> Result<Array1<Float>>
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<State> Freeze for LogitBoostClassifier<State>
impl<State> RefUnwindSafe for LogitBoostClassifier<State>where
State: RefUnwindSafe,
impl<State> Send for LogitBoostClassifier<State>where
State: Send,
impl<State> Sync for LogitBoostClassifier<State>where
State: Sync,
impl<State> Unpin for LogitBoostClassifier<State>where
State: Unpin,
impl<State> UnwindSafe for LogitBoostClassifier<State>where
State: UnwindSafe,
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> 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