pub struct PredictionBlock {
pub prediction_id: Option<String>,
pub producer_node: NodeId,
pub partition: PredictionPartition,
pub fold_id: Option<FoldId>,
pub sample_ids: Vec<SampleId>,
pub values: Vec<Vec<f64>>,
pub target_names: Vec<String>,
}Fields§
§prediction_id: Option<String>§producer_node: NodeId§partition: PredictionPartition§fold_id: Option<FoldId>§sample_ids: Vec<SampleId>§values: Vec<Vec<f64>>§target_names: Vec<String>Implementations§
Source§impl PredictionBlock
impl PredictionBlock
pub fn validate_shape(&self) -> Result<usize, DagMlError>
Trait Implementations§
Source§impl Clone for PredictionBlock
impl Clone for PredictionBlock
Source§fn clone(&self) -> PredictionBlock
fn clone(&self) -> PredictionBlock
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 PredictionBlock
impl Debug for PredictionBlock
Source§impl<'de> Deserialize<'de> for PredictionBlock
impl<'de> Deserialize<'de> for PredictionBlock
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PredictionBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PredictionBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PredictionBlock
impl PartialEq for PredictionBlock
Source§fn eq(&self, other: &PredictionBlock) -> bool
fn eq(&self, other: &PredictionBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PredictionBlock
impl Serialize for PredictionBlock
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PredictionBlock
Auto Trait Implementations§
impl Freeze for PredictionBlock
impl RefUnwindSafe for PredictionBlock
impl Send for PredictionBlock
impl Sync for PredictionBlock
impl Unpin for PredictionBlock
impl UnsafeUnpin for PredictionBlock
impl UnwindSafe for PredictionBlock
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