pub struct FitConfig {Show 30 fields
pub family: Option<String>,
pub link: Option<String>,
pub flexible_link: bool,
pub offset_column: Option<String>,
pub noise_offset_column: Option<String>,
pub frailty: Option<FrailtySpec>,
pub baseline_target: String,
pub baseline_scale: Option<f64>,
pub baseline_shape: Option<f64>,
pub baseline_rate: Option<f64>,
pub baseline_makeham: Option<f64>,
pub time_basis: String,
pub time_degree: usize,
pub time_num_internal_knots: usize,
pub time_smooth_lambda: f64,
pub survival_likelihood: String,
pub survival_distribution: String,
pub threshold_time_k: Option<usize>,
pub threshold_time_degree: usize,
pub sigma_time_k: Option<usize>,
pub sigma_time_degree: usize,
pub noise_formula: Option<String>,
pub logslope_formula: Option<String>,
pub z_column: Option<String>,
pub weight_column: Option<String>,
pub scale_dimensions: bool,
pub ridge_lambda: f64,
pub transformation_normal: bool,
pub firth: bool,
pub resource_policy: Option<ResourcePolicy>,
}Expand description
Non-formula configuration for model fitting. All fields have sensible defaults.
Fields§
§family: Option<String>Family: “gaussian”, “binomial”, “poisson”, “gamma”, or None for auto-detect.
link: Option<String>Link: “identity”, “logit”, “probit”, “cloglog”, “sas”, “beta-logistic”, or None.
flexible_link: boolWhether to use flexible (wiggle-augmented) link.
offset_column: Option<String>Optional additive offset column for the primary linear predictor.
noise_offset_column: Option<String>Optional additive offset column for the noise/log-scale predictor.
frailty: Option<FrailtySpec>Optional family-level frailty modifier.
baseline_target: StringBaseline target: “linear”, “weibull”, “gompertz”, “gompertz-makeham”.
baseline_scale: Option<f64>§baseline_shape: Option<f64>§baseline_rate: Option<f64>§baseline_makeham: Option<f64>§time_basis: StringTime basis: “ispline” or “none”.
time_degree: usize§time_num_internal_knots: usize§time_smooth_lambda: f64§survival_likelihood: StringSurvival likelihood mode: “location-scale”, “transformation”, “weibull”, “marginal-slope”, “latent”, or “latent-binary”.
survival_distribution: StringResidual distribution: “gaussian”, “logistic”, “gumbel”.
threshold_time_k: Option<usize>§threshold_time_degree: usize§sigma_time_k: Option<usize>§sigma_time_degree: usize§noise_formula: Option<String>If set, fit a location-scale model with this formula for the noise parameter.
logslope_formula: Option<String>Formula for the log-slope model (survival marginal-slope or Bernoulli marginal-slope).
z_column: Option<String>Column name for the z (exposure/dose) variable in marginal-slope models.
weight_column: Option<String>Optional non-negative per-row training weights column.
scale_dimensions: bool§ridge_lambda: f64§transformation_normal: boolRoute the fit through the transformation-normal family. When set, the
formula terms are treated as the covariate side of the transformation
model and the response basis is built internally. Incompatible with
noise_formula and with Surv(...) responses.
firth: boolEnable Firth bias reduction for standard single-parameter families.
resource_policy: Option<ResourcePolicy>Optional override of the crate::resource::ResourcePolicy used when
planning spatial bases (TPS / Matern / Duchon) during term construction.
When None, the default-library policy is used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FitConfig
impl RefUnwindSafe for FitConfig
impl Send for FitConfig
impl Sync for FitConfig
impl Unpin for FitConfig
impl UnsafeUnpin for FitConfig
impl UnwindSafe for FitConfig
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
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,
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
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.