pub struct GradientBoostedTrees { /* private fields */ }Expand description
Stage-wise gradient-boosted tree ensemble.
The ensemble keeps explicit tree weights and a base score so the semantic model can reconstruct raw margins exactly for both prediction and IR export.
Implementations§
Source§impl GradientBoostedTrees
impl GradientBoostedTrees
pub fn new( task: Task, tree_type: TreeType, trees: Vec<Model>, tree_weights: Vec<f64>, base_score: f64, learning_rate: f64, bootstrap: bool, top_gradient_fraction: f64, other_gradient_fraction: f64, max_features: usize, seed: Option<u64>, num_features: usize, feature_preprocessing: Vec<FeaturePreprocessing>, class_labels: Option<Vec<f64>>, training_canaries: usize, ) -> Self
pub fn predict_table(&self, table: &dyn TableAccess) -> Vec<f64>
pub fn predict_proba_table( &self, table: &dyn TableAccess, ) -> Result<Vec<Vec<f64>>, PredictError>
pub fn task(&self) -> Task
pub fn criterion(&self) -> Criterion
pub fn tree_type(&self) -> TreeType
pub fn trees(&self) -> &[Model]
pub fn tree_weights(&self) -> &[f64]
pub fn base_score(&self) -> f64
pub fn num_features(&self) -> usize
pub fn feature_preprocessing(&self) -> &[FeaturePreprocessing]
pub fn class_labels(&self) -> Option<Vec<f64>>
pub fn training_metadata(&self) -> TrainingMetadata
Trait Implementations§
Source§impl Clone for GradientBoostedTrees
impl Clone for GradientBoostedTrees
Source§fn clone(&self) -> GradientBoostedTrees
fn clone(&self) -> GradientBoostedTrees
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 moreAuto Trait Implementations§
impl Freeze for GradientBoostedTrees
impl RefUnwindSafe for GradientBoostedTrees
impl Send for GradientBoostedTrees
impl Sync for GradientBoostedTrees
impl Unpin for GradientBoostedTrees
impl UnsafeUnpin for GradientBoostedTrees
impl UnwindSafe for GradientBoostedTrees
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