pub enum Table {
Dense(DenseTable),
Sparse(SparseTable),
}Variants§
Dense(DenseTable)
Sparse(SparseTable)
Implementations§
Source§impl Table
impl Table
pub fn new(x: Vec<Vec<f64>>, y: Vec<f64>) -> Result<Self, DenseTableError>
pub fn with_canaries( x: Vec<Vec<f64>>, y: Vec<f64>, canaries: usize, ) -> Result<Self, DenseTableError>
pub fn with_options( x: Vec<Vec<f64>>, y: Vec<f64>, canaries: usize, numeric_bins: NumericBins, ) -> Result<Self, DenseTableError>
pub fn kind(&self) -> TableKind
pub fn as_dense(&self) -> Option<&DenseTable>
pub fn as_sparse(&self) -> Option<&SparseTable>
Trait Implementations§
Source§impl TableAccess for Table
impl TableAccess for Table
fn n_rows(&self) -> usize
fn n_features(&self) -> usize
fn canaries(&self) -> usize
fn numeric_bin_cap(&self) -> usize
fn binned_feature_count(&self) -> usize
fn feature_value(&self, feature_index: usize, row_index: usize) -> f64
fn is_binary_feature(&self, index: usize) -> bool
fn binned_value(&self, feature_index: usize, row_index: usize) -> u16
fn binned_boolean_value( &self, feature_index: usize, row_index: usize, ) -> Option<bool>
fn binned_column_kind(&self, index: usize) -> BinnedColumnKind
fn is_binary_binned_feature(&self, index: usize) -> bool
fn target_value(&self, row_index: usize) -> f64
fn is_canary_binned_feature(&self, index: usize) -> bool
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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