[−][src]Struct randomforest::RandomForestClassifierOptions
Random forest options.
Implementations
impl RandomForestClassifierOptions
[src]
pub fn new() -> Self
[src]
Makes a RandomForestClassifierOptions
instance with the default settings.
pub fn seed(&mut self, seed: u64) -> &mut Self
[src]
Sets the random generator seed.
The default value is random.
pub fn trees(&mut self, trees: NonZeroUsize) -> &mut Self
[src]
Sets the number of decision trees.
The default value is 100
.
pub fn max_features(&mut self, max: NonZeroUsize) -> &mut Self
[src]
Sets the number of maximum candidate features used to determine each decision tree node.
The default value is sqrt(the number of features)
.
pub fn max_samples(&mut self, max: NonZeroUsize) -> &mut Self
[src]
Sets the maximum number of samples used to train each decision tree.
The default value is the number of rows in the target table.
pub fn parallel(&mut self) -> &mut Self
[src]
Enables parallel executions of RandomForestClassifier::fit
.
This library use rayon
for parallel execution.
Please see the rayon document if you want to configure the behavior
(e.g., the number of worker threads).
pub fn fit<T: ClassificationCriterion>(
&self,
criterion: T,
table: Table<'_>
) -> RandomForestClassifier
[src]
&self,
criterion: T,
table: Table<'_>
) -> RandomForestClassifier
Builds a classifier model fitting the given table.
Trait Implementations
impl Clone for RandomForestClassifierOptions
[src]
fn clone(&self) -> RandomForestClassifierOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RandomForestClassifierOptions
[src]
impl Default for RandomForestClassifierOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for RandomForestClassifierOptions
impl Send for RandomForestClassifierOptions
impl Sync for RandomForestClassifierOptions
impl Unpin for RandomForestClassifierOptions
impl UnwindSafe for RandomForestClassifierOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,