pub struct Task {
pub id: String,
pub features: Array2<f64>,
pub targets: Array1<f64>,
pub metadata: HashMap<String, String>,
pub importance_weights: Option<HashMap<String, f64>>,
pub statistics: TaskStatistics,
}Expand description
Task representation for continual learning
Fields§
§id: StringUnique task identifier
features: Array2<f64>Task features
targets: Array1<f64>Task targets
metadata: HashMap<String, String>Task metadata
importance_weights: Option<HashMap<String, f64>>Task importance weights
statistics: TaskStatisticsTask learning statistics
Implementations§
Source§impl Task
impl Task
Sourcepub fn with_metadata(self, metadata: HashMap<String, String>) -> Self
pub fn with_metadata(self, metadata: HashMap<String, String>) -> Self
Set task metadata
Sourcepub fn with_importance_weights(self, weights: HashMap<String, f64>) -> Self
pub fn with_importance_weights(self, weights: HashMap<String, f64>) -> Self
Set importance weights
Sourcepub fn estimate_difficulty(&mut self)
pub fn estimate_difficulty(&mut self)
Estimate task difficulty based on data characteristics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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