pub struct StreamDataPoint {
pub features: Array1<f64>,
pub target: Option<f64>,
pub timestamp: SystemTime,
pub metadata: HashMap<String, String>,
pub id: String,
}Expand description
Data point in a stream
Fields§
§features: Array1<f64>Feature values
target: Option<f64>Target value (optional)
timestamp: SystemTimeTimestamp
metadata: HashMap<String, String>Metadata
id: StringData point ID
Implementations§
Source§impl StreamDataPoint
impl StreamDataPoint
Sourcepub fn with_target(self, target: f64) -> Self
pub fn with_target(self, target: f64) -> Self
Set target value
Sourcepub fn with_timestamp(self, timestamp: SystemTime) -> Self
pub fn with_timestamp(self, timestamp: SystemTime) -> Self
Set timestamp
Sourcepub fn with_metadata(self, metadata: HashMap<String, String>) -> Self
pub fn with_metadata(self, metadata: HashMap<String, String>) -> Self
Set metadata
Trait Implementations§
Source§impl Clone for StreamDataPoint
impl Clone for StreamDataPoint
Source§fn clone(&self) -> StreamDataPoint
fn clone(&self) -> StreamDataPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamDataPoint
impl RefUnwindSafe for StreamDataPoint
impl Send for StreamDataPoint
impl Sync for StreamDataPoint
impl Unpin for StreamDataPoint
impl UnwindSafe for StreamDataPoint
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