pub struct ColumnarPredictionCacheBlock {
pub prediction_id: Option<String>,
pub producer_node: NodeId,
pub partition: PredictionPartition,
pub fold_id: Option<FoldId>,
pub prediction_level: PredictionLevel,
pub unit_ids: Vec<PredictionUnitId>,
pub sample_ids: Vec<SampleId>,
pub target_names: Vec<String>,
pub width: usize,
pub columns: Vec<Vec<f64>>,
}Fields§
§prediction_id: Option<String>§producer_node: NodeId§partition: PredictionPartition§fold_id: Option<FoldId>§prediction_level: PredictionLevel§unit_ids: Vec<PredictionUnitId>§sample_ids: Vec<SampleId>§target_names: Vec<String>§width: usize§columns: Vec<Vec<f64>>Implementations§
Source§impl ColumnarPredictionCacheBlock
impl ColumnarPredictionCacheBlock
pub fn from_prediction_block( block: &PredictionBlock, ) -> Result<ColumnarPredictionCacheBlock, DagMlError>
pub fn from_aggregated_prediction_block( block: &AggregatedPredictionBlock, ) -> Result<ColumnarPredictionCacheBlock, DagMlError>
pub fn row_count(&self) -> usize
pub fn value_count(&self) -> usize
pub fn validate(&self) -> Result<(), DagMlError>
pub fn to_prediction_block(&self) -> Result<PredictionBlock, DagMlError>
pub fn to_aggregated_prediction_block( &self, ) -> Result<AggregatedPredictionBlock, DagMlError>
Trait Implementations§
Source§impl Clone for ColumnarPredictionCacheBlock
impl Clone for ColumnarPredictionCacheBlock
Source§fn clone(&self) -> ColumnarPredictionCacheBlock
fn clone(&self) -> ColumnarPredictionCacheBlock
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 moreSource§impl Debug for ColumnarPredictionCacheBlock
impl Debug for ColumnarPredictionCacheBlock
Source§impl PartialEq for ColumnarPredictionCacheBlock
impl PartialEq for ColumnarPredictionCacheBlock
Source§fn eq(&self, other: &ColumnarPredictionCacheBlock) -> bool
fn eq(&self, other: &ColumnarPredictionCacheBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColumnarPredictionCacheBlock
Auto Trait Implementations§
impl Freeze for ColumnarPredictionCacheBlock
impl RefUnwindSafe for ColumnarPredictionCacheBlock
impl Send for ColumnarPredictionCacheBlock
impl Sync for ColumnarPredictionCacheBlock
impl Unpin for ColumnarPredictionCacheBlock
impl UnsafeUnpin for ColumnarPredictionCacheBlock
impl UnwindSafe for ColumnarPredictionCacheBlock
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