pub struct Experience {
pub task_id: String,
pub features: Array2<f64>,
pub targets: Array1<f64>,
pub metadata: HashMap<String, String>,
pub performance: HashMap<String, f64>,
pub parameters: HashMap<String, f64>,
}Expand description
Experience entry for meta-learning
Fields§
§task_id: StringTask identifier
features: Array2<f64>Input features for the task
targets: Array1<f64>Target values for the task
metadata: HashMap<String, String>Task metadata (e.g., task type, domain)
performance: HashMap<String, f64>Performance metrics achieved on this task
parameters: HashMap<String, f64>Model parameters used for this task
Implementations§
Source§impl Experience
impl Experience
Sourcepub fn new(task_id: String, features: Array2<f64>, targets: Array1<f64>) -> Self
pub fn new(task_id: String, features: Array2<f64>, targets: Array1<f64>) -> Self
Create a new experience entry
Sourcepub fn with_metadata(self, metadata: HashMap<String, String>) -> Self
pub fn with_metadata(self, metadata: HashMap<String, String>) -> Self
Add metadata to the experience
Sourcepub fn with_performance(self, performance: HashMap<String, f64>) -> Self
pub fn with_performance(self, performance: HashMap<String, f64>) -> Self
Add performance metrics to the experience
Sourcepub fn with_parameters(self, parameters: HashMap<String, f64>) -> Self
pub fn with_parameters(self, parameters: HashMap<String, f64>) -> Self
Add model parameters to the experience
Trait Implementations§
Source§impl Clone for Experience
impl Clone for Experience
Source§fn clone(&self) -> Experience
fn clone(&self) -> Experience
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 Experience
impl RefUnwindSafe for Experience
impl Send for Experience
impl Sync for Experience
impl Unpin for Experience
impl UnwindSafe for Experience
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