pub enum TaskType {
Show 13 variants
Transform {
node_id: EdgeId,
transformation: LPR,
},
BatchTransform(Vec<(EdgeId, Vec<LPR>)>),
ComputeTransformations,
SharePatterns,
LearnPattern {
node_id: EdgeId,
pattern: Vec<f32>,
target: f32,
},
OptimizeMemory {
max_features: usize,
},
OptimizeNode {
node_id: EdgeId,
target_memory: usize,
},
BalanceResources,
ChangeNodeMode(EdgeId, OperatorKind),
ProcessAgentProposals,
CoordinateLearning,
EvaluateEnsemble {
node_id: EdgeId,
component_nodes: Vec<EdgeId>,
},
EvaluatePerformance,
}Expand description
Types of tasks that can be scheduled
Variants§
Transform
Apply a transformation to a specific node
BatchTransform(Vec<(EdgeId, Vec<LPR>)>)
Apply multiple transformations to multiple nodes
ComputeTransformations
Compute all possible transformations between nodes
Share patterns between nodes
LearnPattern
Learn a pattern on a specific node
OptimizeMemory
Optimize memory usage
OptimizeNode
Optimize a specific node
BalanceResources
Balance resources across nodes
ChangeNodeMode(EdgeId, OperatorKind)
Change node operator mode
ProcessAgentProposals
Process agent proposals
CoordinateLearning
Coordinate learning between nodes
EvaluateEnsemble
Evaluate ensemble performance
EvaluatePerformance
Evaluate performance
Implementations§
Source§impl TaskType
impl TaskType
Sourcepub const fn is_transform(&self) -> bool
pub const fn is_transform(&self) -> bool
Returns true if the enum is TaskType::Transform otherwise false
Sourcepub const fn is_batch_transform(&self) -> bool
pub const fn is_batch_transform(&self) -> bool
Returns true if the enum is TaskType::BatchTransform otherwise false
Sourcepub const fn is_compute_transformations(&self) -> bool
pub const fn is_compute_transformations(&self) -> bool
Returns true if the enum is TaskType::ComputeTransformations otherwise false
Returns true if the enum is TaskType::SharePatterns otherwise false
Sourcepub const fn is_learn_pattern(&self) -> bool
pub const fn is_learn_pattern(&self) -> bool
Returns true if the enum is TaskType::LearnPattern otherwise false
Sourcepub const fn is_optimize_memory(&self) -> bool
pub const fn is_optimize_memory(&self) -> bool
Returns true if the enum is TaskType::OptimizeMemory otherwise false
Sourcepub const fn is_optimize_node(&self) -> bool
pub const fn is_optimize_node(&self) -> bool
Returns true if the enum is TaskType::OptimizeNode otherwise false
Sourcepub const fn is_balance_resources(&self) -> bool
pub const fn is_balance_resources(&self) -> bool
Returns true if the enum is TaskType::BalanceResources otherwise false
Sourcepub const fn is_change_node_mode(&self) -> bool
pub const fn is_change_node_mode(&self) -> bool
Returns true if the enum is TaskType::ChangeNodeMode otherwise false
Sourcepub const fn is_process_agent_proposals(&self) -> bool
pub const fn is_process_agent_proposals(&self) -> bool
Returns true if the enum is TaskType::ProcessAgentProposals otherwise false
Sourcepub const fn is_coordinate_learning(&self) -> bool
pub const fn is_coordinate_learning(&self) -> bool
Returns true if the enum is TaskType::CoordinateLearning otherwise false
Sourcepub const fn is_evaluate_ensemble(&self) -> bool
pub const fn is_evaluate_ensemble(&self) -> bool
Returns true if the enum is TaskType::EvaluateEnsemble otherwise false
Sourcepub const fn is_evaluate_performance(&self) -> bool
pub const fn is_evaluate_performance(&self) -> bool
Returns true if the enum is TaskType::EvaluatePerformance otherwise false
Trait Implementations§
Source§impl<'_enum> From<&'_enum TaskType> for TaskTypeKey
impl<'_enum> From<&'_enum TaskType> for TaskTypeKey
Source§fn from(val: &'_enum TaskType) -> TaskTypeKey
fn from(val: &'_enum TaskType) -> TaskTypeKey
Source§impl From<TaskType> for TaskTypeKey
impl From<TaskType> for TaskTypeKey
Source§fn from(val: TaskType) -> TaskTypeKey
fn from(val: TaskType) -> TaskTypeKey
Source§impl IntoDiscriminant for TaskType
impl IntoDiscriminant for TaskType
Source§type Discriminant = TaskTypeKey
type Discriminant = TaskTypeKey
fn discriminant(&self) -> Self::Discriminant
Source§impl PartialOrd for TaskType
impl PartialOrd for TaskType
impl Eq for TaskType
impl StructuralPartialEq for TaskType
Auto Trait Implementations§
impl Freeze for TaskType
impl RefUnwindSafe for TaskType
impl Send for TaskType
impl Sync for TaskType
impl Unpin for TaskType
impl UnwindSafe for TaskType
Blanket Implementations§
Source§impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<K, S> Identity<K> for Swhere
S: Borrow<K>,
K: Identifier,
impl<K, S> Identity<K> for Swhere
S: Borrow<K>,
K: Identifier,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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