pub struct MultinomialFitRequest<'a> {
pub data: &'a EncodedDataset,
pub formula: &'a str,
pub config: &'a FitConfig,
pub init_lambda: f64,
pub max_iter: usize,
pub tol: f64,
}Expand description
Canonical typed inputs for the formula-driven multinomial fit
(fit_penalized_multinomial_formula).
Every frontend (Rust, CLI, Python FFI) builds this one request, so the
warm-start / outer-search defaults live here rather than being duplicated
per caller. config is the same canonical FitConfig the scalar formula
families consume: weight_column is resolved against the dataset and
honored as per-row case weights, and fields the softmax family cannot
consume (offsets, noise/log-slope formulas, manual Firth, frailty, …) are
rejected with a typed error instead of being silently dropped.
Fields§
§data: &'a EncodedDataset§formula: &'a str§config: &'a FitConfig§init_lambda: f64Warm-start seed for every per-(class, term) smoothing parameter; λ is REML/LAML-selected, so this only seeds the outer search.
max_iter: usizeOUTER REML/LAML smoothing-parameter iteration budget.
tol: f64Requested accuracy; drives the inner joint-Newton KKT target (see the control-split note inside the fit).
Implementations§
Source§impl<'a> MultinomialFitRequest<'a>
impl<'a> MultinomialFitRequest<'a>
Sourcepub fn new(
data: &'a EncodedDataset,
formula: &'a str,
config: &'a FitConfig,
) -> Self
pub fn new( data: &'a EncodedDataset, formula: &'a str, config: &'a FitConfig, ) -> Self
The canonical production controls shared by the CLI and the Python FFI.
Trait Implementations§
Source§impl<'a> Clone for MultinomialFitRequest<'a>
impl<'a> Clone for MultinomialFitRequest<'a>
Source§fn clone(&self) -> MultinomialFitRequest<'a>
fn clone(&self) -> MultinomialFitRequest<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<'a> Copy for MultinomialFitRequest<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MultinomialFitRequest<'a>
impl<'a> !UnwindSafe for MultinomialFitRequest<'a>
impl<'a> Freeze for MultinomialFitRequest<'a>
impl<'a> Send for MultinomialFitRequest<'a>
impl<'a> Sync for MultinomialFitRequest<'a>
impl<'a> Unpin for MultinomialFitRequest<'a>
impl<'a> UnsafeUnpin for MultinomialFitRequest<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.