pub struct LightGBMClassifier {
pub n_estimators: usize,
pub learning_rate: f32,
pub num_leaves: usize,
pub max_depth: i32,
pub min_data_in_leaf: usize,
pub min_sum_hessian_in_leaf: f32,
pub feature_fraction: f32,
pub bagging_fraction: f32,
pub bagging_freq: usize,
pub lambda_l1: f32,
pub lambda_l2: f32,
pub max_bin: usize,
/* private fields */
}Expand description
LightGBM-style Gradient Boosting Classifier
Fields§
§n_estimators: usize§learning_rate: f32§num_leaves: usize§max_depth: i32§min_data_in_leaf: usize§min_sum_hessian_in_leaf: f32§feature_fraction: f32§bagging_fraction: f32§bagging_freq: usize§lambda_l1: f32§lambda_l2: f32§max_bin: usizeImplementations§
Source§impl LightGBMClassifier
impl LightGBMClassifier
pub fn new(n_estimators: usize) -> Self
pub fn learning_rate(self, lr: f32) -> Self
pub fn num_leaves(self, leaves: usize) -> Self
pub fn max_depth(self, depth: i32) -> Self
pub fn feature_fraction(self, fraction: f32) -> Self
pub fn fit(&mut self, x: &Tensor, y: &Tensor)
pub fn predict(&self, x: &Tensor) -> Tensor
pub fn predict_proba(&self, x: &Tensor) -> Tensor
Auto Trait Implementations§
impl Freeze for LightGBMClassifier
impl RefUnwindSafe for LightGBMClassifier
impl Send for LightGBMClassifier
impl Sync for LightGBMClassifier
impl Unpin for LightGBMClassifier
impl UnwindSafe for LightGBMClassifier
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