pub struct BoosterParameters { /* private fields */ }
Expand description
Parameters for training boosters.
Created using BoosterParametersBuilder
.
Implementations§
Source§impl BoosterParameters
impl BoosterParameters
Sourcepub fn booster_type(&self) -> &BoosterType
pub fn booster_type(&self) -> &BoosterType
Get type of booster (tree, linear or DART) along with its parameters.
Sourcepub fn set_booster_type<T: Into<BoosterType>>(&mut self, booster_type: T)
pub fn set_booster_type<T: Into<BoosterType>>(&mut self, booster_type: T)
Set type of booster (tree, linear or DART) along with its parameters.
Sourcepub fn learning_params(&self) -> &LearningTaskParameters
pub fn learning_params(&self) -> &LearningTaskParameters
Get configuration for the learning objective.
Sourcepub fn set_learning_params<T: Into<LearningTaskParameters>>(
&mut self,
learning_params: T,
)
pub fn set_learning_params<T: Into<LearningTaskParameters>>( &mut self, learning_params: T, )
Set configuration for the learning objective.
Sourcepub fn set_verbose(&mut self, verbose: bool)
pub fn set_verbose(&mut self, verbose: bool)
Set to true
to enable verbose output from XGBoost
’s C library.
Sourcepub fn threads(&self) -> &Option<u32>
pub fn threads(&self) -> &Option<u32>
Get number of parallel threads XGBoost
will use (if compiled with multiprocessing support).
If None
, XGBoost
will determine the number of threads to use automatically.
Sourcepub fn set_threads<T: Into<Option<u32>>>(&mut self, threads: T)
pub fn set_threads<T: Into<Option<u32>>>(&mut self, threads: T)
Set number of parallel threads XGBoost
will use (if compiled with multiprocessing support).
If None
, XGBoost
will determine the number of threads to use automatically.
Trait Implementations§
Source§impl Clone for BoosterParameters
impl Clone for BoosterParameters
Source§fn clone(&self) -> BoosterParameters
fn clone(&self) -> BoosterParameters
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 moreSource§impl Default for BoosterParameters
impl Default for BoosterParameters
Source§fn default() -> BoosterParameters
fn default() -> BoosterParameters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BoosterParameters
impl RefUnwindSafe for BoosterParameters
impl Send for BoosterParameters
impl Sync for BoosterParameters
impl Unpin for BoosterParameters
impl UnwindSafe for BoosterParameters
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