pub struct EncodedDataset {
pub headers: Vec<String>,
pub values: Array2<f64>,
pub schema: DataSchema,
pub column_kinds: Vec<ColumnKindTag>,
}Fields§
§headers: Vec<String>§values: Array2<f64>§schema: DataSchema§column_kinds: Vec<ColumnKindTag>Implementations§
Source§impl EncodedDataset
impl EncodedDataset
Sourcepub fn validate_fit_boundary(&self) -> Result<(), DataError>
pub fn validate_fit_boundary(&self) -> Result<(), DataError>
Validate the table at the common formula-fit boundary.
This deliberately lives below formula materialization: library, CLI,
and Python fits all carry an EncodedDataset through that seam, so a
degenerate design can never acquire frontend-specific behaviour.
Constancy is NOT a boundary rule: a constant column is legitimate input for many designs (an all-zero left-truncation entry time, an event indicator, a scalar term the model prunes) and the layers that judge it carry the specific message (an all-zero count response, #2255; a constant calibrated score column in a marginal-slope fit).
pub fn column_map(&self) -> HashMap<String, usize>
Sourcepub fn feature_ranges(&self) -> Vec<(f64, f64)>
pub fn feature_ranges(&self) -> Vec<(f64, f64)>
Per-column finite (min, max) of the training values, parallel to
headers. Columns with no finite values default to (0.0, 0.0) so that
downstream clipping is a no-op for them. Used to populate
training_feature_ranges so prediction can clip out-of-hull inputs
to the training bounding box.
Trait Implementations§
Source§impl Clone for EncodedDataset
impl Clone for EncodedDataset
Source§fn clone(&self) -> EncodedDataset
fn clone(&self) -> EncodedDataset
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for EncodedDataset
impl RefUnwindSafe for EncodedDataset
impl Send for EncodedDataset
impl Sync for EncodedDataset
impl Unpin for EncodedDataset
impl UnsafeUnpin for EncodedDataset
impl UnwindSafe for EncodedDataset
Blanket Implementations§
impl<T> Allocation for T
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> 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 more