#[repr(C)]pub struct GPCTrainingParams {
pub max_tree_depth: u32,
pub min_number_of_samples: i32,
pub descriptor_type: i32,
pub print_progress: bool,
}Expand description
Class encapsulating training parameters.
Fields§
§max_tree_depth: u32Maximum tree depth to stop partitioning.
min_number_of_samples: i32Minimum number of samples in the node to stop partitioning.
descriptor_type: i32Type of descriptors to use.
print_progress: boolPrint progress to stdout.
Implementations§
Source§impl GPCTrainingParams
impl GPCTrainingParams
pub fn check(self) -> Result<bool>
Sourcepub fn new(
_max_tree_depth: u32,
_min_number_of_samples: i32,
_descriptor_type: GPCDescType,
_print_progress: bool,
) -> Result<GPCTrainingParams>
pub fn new( _max_tree_depth: u32, _min_number_of_samples: i32, _descriptor_type: GPCDescType, _print_progress: bool, ) -> Result<GPCTrainingParams>
§C++ default parameters
- _max_tree_depth: 20
- _min_number_of_samples: 3
- _descriptor_type: GPC_DESCRIPTOR_DCT
- _print_progress: true
Sourcepub fn new_def() -> Result<GPCTrainingParams>
pub fn new_def() -> Result<GPCTrainingParams>
§Note
This alternative version of [new] function uses the following default values for its arguments:
- _max_tree_depth: 20
- _min_number_of_samples: 3
- _descriptor_type: GPC_DESCRIPTOR_DCT
- _print_progress: true
Trait Implementations§
Source§impl Clone for GPCTrainingParams
impl Clone for GPCTrainingParams
Source§fn clone(&self) -> GPCTrainingParams
fn clone(&self) -> GPCTrainingParams
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 moreSource§impl Debug for GPCTrainingParams
impl Debug for GPCTrainingParams
Source§impl PartialEq for GPCTrainingParams
impl PartialEq for GPCTrainingParams
impl Copy for GPCTrainingParams
impl StructuralPartialEq for GPCTrainingParams
Auto Trait Implementations§
impl Freeze for GPCTrainingParams
impl RefUnwindSafe for GPCTrainingParams
impl Send for GPCTrainingParams
impl Sync for GPCTrainingParams
impl Unpin for GPCTrainingParams
impl UnwindSafe for GPCTrainingParams
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