pub struct LearningTaskParameters { /* private fields */ }
Expand description
BoosterParameters
that configure the learning objective.
See LearningTaskParametersBuilder
, for details
on parameters.
Implementations§
Source§impl LearningTaskParameters
impl LearningTaskParameters
pub fn objective(&self) -> &Objective
pub fn set_objective<T: Into<Objective>>(&mut self, objective: T)
pub fn base_score(&self) -> f32
pub fn set_base_score(&mut self, base_score: f32)
pub fn eval_metrics(&self) -> &Metrics
pub fn set_eval_metrics<T: Into<Metrics>>(&mut self, eval_metrics: T)
pub fn seed(&self) -> u64
pub fn set_seed(&mut self, seed: u64)
Trait Implementations§
Source§impl Clone for LearningTaskParameters
impl Clone for LearningTaskParameters
Source§fn clone(&self) -> LearningTaskParameters
fn clone(&self) -> LearningTaskParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LearningTaskParameters
impl RefUnwindSafe for LearningTaskParameters
impl Send for LearningTaskParameters
impl Sync for LearningTaskParameters
impl Unpin for LearningTaskParameters
impl UnwindSafe for LearningTaskParameters
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