[−][src]Struct randomforest::RandomForestRegressor
Random forest regressor.
Implementations
impl RandomForestRegressor
[src]
pub fn fit<T: RegressionCriterion>(criterion: T, table: Table<'_>) -> Self
[src]
Builds a regressor model fitting the given table with the default settings.
pub fn predict(&self, features: &[f64]) -> f64
[src]
Predicts the target value for the given features.
pub fn predict_individuals<'a>(
&'a self,
features: &'a [f64]
) -> impl 'a + Iterator<Item = f64>
[src]
&'a self,
features: &'a [f64]
) -> impl 'a + Iterator<Item = f64>
Returns an iterator that iterates over a target value predicted by each decision tree.
pub fn serialize<W: Write>(&self, writer: W) -> Result<()>
[src]
Writes this regressor to the given byte stream.
pub fn deserialize<R: Read>(reader: R) -> Result<Self>
[src]
Reads a regressor from the given byte stream.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RandomForestRegressor
impl Send for RandomForestRegressor
impl Sync for RandomForestRegressor
impl Unpin for RandomForestRegressor
impl UnwindSafe for RandomForestRegressor
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, 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>,