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
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
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
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>
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