pub struct EnsembleParams { /* private fields */ }Expand description
Parameters for one ensemble-predict call — the sklearn-wrapper-equivalent counterpart to
TabFMClassifier(...)/TabFMRegressor(...)’s constructor kwargs. Fields are private; build
one by chaining .with_*() off EnsembleParams::default (defaults match the wrapper’s
own constructor defaults).
use zsfm_tabfm::EnsembleParams;
let params = EnsembleParams::default()
.with_n_estimators(64)
.with_enable_nnls(true)
.with_random_state(0);Implementations§
Source§impl EnsembleParams
impl EnsembleParams
pub fn with_n_estimators(self, v: usize) -> Self
pub fn with_norm_methods(self, v: Vec<NormMethod>) -> Self
pub fn with_class_shift(self, v: bool) -> Self
pub fn with_outlier_threshold(self, v: f64) -> Self
pub fn with_softmax_temperature(self, v: f64) -> Self
pub fn with_average_logits(self, v: bool) -> Self
pub fn with_random_state(self, v: u64) -> Self
Sourcepub fn with_binary_calibration(self, v: bool) -> Self
pub fn with_binary_calibration(self, v: bool) -> Self
Enable Platt scaling for binary classification (n_classes == 2).
Sourcepub fn with_multiclass_calibration(self, v: bool) -> Self
pub fn with_multiclass_calibration(self, v: bool) -> Self
Enable vector scaling for multiclass classification (n_classes > 2).
pub fn with_num_folds_for_cv(self, v: usize) -> Self
pub fn with_enable_nnls(self, v: bool) -> Self
pub fn with_nnls_beta(self, v: f64) -> Self
pub fn with_calibration_lambda(self, v: f64) -> Self
pub fn with_batch_size(self, v: Option<usize>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnsembleParams
impl RefUnwindSafe for EnsembleParams
impl Send for EnsembleParams
impl Sync for EnsembleParams
impl Unpin for EnsembleParams
impl UnsafeUnpin for EnsembleParams
impl UnwindSafe for EnsembleParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more