pub struct GradientBoostingRegressor {
pub parameters: BoostingParameters,
pub training_loss: Vec<f64>,
/* private fields */
}Expand description
Gradient boosting for regression with the squared-error loss.
Fields§
§parameters: BoostingParameters§training_loss: Vec<f64>Training mean squared error after each stage.
Implementations§
Source§impl GradientBoostingRegressor
impl GradientBoostingRegressor
pub fn new(parameters: BoostingParameters) -> Self
Sourcepub fn feature_importances(&self) -> Vec<f64>
pub fn feature_importances(&self) -> Vec<f64>
Relative feature importances (normalised squared-error reductions).
Trait Implementations§
Source§impl Clone for GradientBoostingRegressor
impl Clone for GradientBoostingRegressor
Source§impl Debug for GradientBoostingRegressor
impl Debug for GradientBoostingRegressor
Auto Trait Implementations§
impl Freeze for GradientBoostingRegressor
impl RefUnwindSafe for GradientBoostingRegressor
impl Send for GradientBoostingRegressor
impl Sync for GradientBoostingRegressor
impl Unpin for GradientBoostingRegressor
impl UnsafeUnpin for GradientBoostingRegressor
impl UnwindSafe for GradientBoostingRegressor
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