pub struct DatasetProbe {
pub file_bytes: u64,
pub ftype: FileType,
pub features: usize,
pub estimated_rows: u64,
pub bytes_per_row: usize,
pub projected_bytes: u128,
pub nonzeros_per_row: usize,
}Expand description
What loading a dataset file is going to cost, worked out from its header and a small sample of its rows rather than by loading it.
A dataset that doesn’t fit in memory otherwise reveals that by being killed part way through a load, which says nothing about why.
Fields§
§file_bytes: u64Size of the file on disk, in bytes
ftype: FileTypeFile type named in the header
features: usizeNumber of n-gram features the header declares
estimated_rows: u64Estimated number of data rows, from the file size and the sampled rows
bytes_per_row: usizeBytes one row occupies in memory with this build’s row storage
projected_bytes: u128Estimated total memory for the row data
nonzeros_per_row: usizeAverage non-zero features per row, from the sampled rows
Implementations§
Trait Implementations§
Source§impl Clone for DatasetProbe
impl Clone for DatasetProbe
Source§impl Debug for DatasetProbe
impl Debug for DatasetProbe
Auto Trait Implementations§
impl Freeze for DatasetProbe
impl RefUnwindSafe for DatasetProbe
impl Send for DatasetProbe
impl Sync for DatasetProbe
impl Unpin for DatasetProbe
impl UnsafeUnpin for DatasetProbe
impl UnwindSafe for DatasetProbe
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
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