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