pub struct OptimizationContext {
pub learningrate: f64,
pub accumulated_performance: Vec<f64>,
pub adaptation_history: HashMap<String, f64>,
pub total_memory_used: usize,
pub total_cpu_cycles: u64,
pub total_gpu_time: Duration,
pub final_quality_score: f64,
pub confidence_score: f64,
pub stages_completed: usize,
}
Expand description
Context for optimization operations
Fields§
§learningrate: f64
§accumulated_performance: Vec<f64>
§adaptation_history: HashMap<String, f64>
§total_memory_used: usize
§total_cpu_cycles: u64
§total_gpu_time: Duration
§final_quality_score: f64
§confidence_score: f64
§stages_completed: usize
Implementations§
Source§impl OptimizationContext
impl OptimizationContext
pub fn new() -> Self
pub fn stage(&mut self, stage: &PipelineStage) -> CoreResult<()>
Trait Implementations§
Source§impl Clone for OptimizationContext
impl Clone for OptimizationContext
Source§fn clone(&self) -> OptimizationContext
fn clone(&self) -> OptimizationContext
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 moreSource§impl Debug for OptimizationContext
impl Debug for OptimizationContext
Auto Trait Implementations§
impl Freeze for OptimizationContext
impl RefUnwindSafe for OptimizationContext
impl Send for OptimizationContext
impl Sync for OptimizationContext
impl Unpin for OptimizationContext
impl UnwindSafe for OptimizationContext
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