pub struct AIProcessingState {Show 17 fields
pub decision_network: Array3<f64>,
pub experience_buffer: VecDeque<ProcessingExperience>,
pub processing_strategies: HashMap<ImagePattern, ProcessingStrategy>,
pub performancehistory: VecDeque<f64>,
pub knowledge_base: MultiModalKnowledgeBase,
pub currentcontext: ProcessingContext,
pub continual_learningstate: ContinualLearningState,
pub explanation_tracker: ExplanationTracker,
pub transfer_models: Vec<TransferLearningModel>,
pub few_shot_cache: HashMap<String, FewShotLearningEntry>,
pub algorithm_confidence: HashMap<String, f64>,
pub neural_network: NeuralModel,
pub pattern_strategy_mapping: HashMap<String, String>,
pub algorithm_usage_count: HashMap<String, usize>,
pub strategy_performance: HashMap<String, f64>,
pub patternhistory: VecDeque<ImagePattern>,
pub learnedfeatures: HashMap<String, Array1<f64>>,
}Expand description
AI-Driven Processing State
Fields§
§decision_network: Array3<f64>Neural network weights for decision making
experience_buffer: VecDeque<ProcessingExperience>Experience replay buffer
processing_strategies: HashMap<ImagePattern, ProcessingStrategy>Learned processing strategies
performancehistory: VecDeque<f64>Performance history
knowledge_base: MultiModalKnowledgeBaseMulti-modal knowledge base
currentcontext: ProcessingContextCurrent processing context
continual_learningstate: ContinualLearningStateContinual learning state
explanation_tracker: ExplanationTrackerExplainability tracking
transfer_models: Vec<TransferLearningModel>Transfer learning models
few_shot_cache: HashMap<String, FewShotLearningEntry>Few-shot learning cache
algorithm_confidence: HashMap<String, f64>Algorithm confidence levels
neural_network: NeuralModelNeural network for pattern classification
pattern_strategy_mapping: HashMap<String, String>Pattern to strategy mapping
algorithm_usage_count: HashMap<String, usize>Algorithm usage count tracking
strategy_performance: HashMap<String, f64>Strategy performance tracking
patternhistory: VecDeque<ImagePattern>Pattern processing history
learnedfeatures: HashMap<String, Array1<f64>>Learned feature representations
Implementations§
Source§impl AIProcessingState
impl AIProcessingState
Sourcepub fn add_experience(&mut self, experience: ProcessingExperience)
pub fn add_experience(&mut self, experience: ProcessingExperience)
Add experience to the replay buffer
Sourcepub fn get_experience_batch(
&self,
batch_size: usize,
) -> Vec<ProcessingExperience>
pub fn get_experience_batch( &self, batch_size: usize, ) -> Vec<ProcessingExperience>
Get a batch of experiences for learning
Sourcepub fn update_strategy(
&mut self,
pattern: ImagePattern,
strategy: ProcessingStrategy,
)
pub fn update_strategy( &mut self, pattern: ImagePattern, strategy: ProcessingStrategy, )
Update strategy for a given pattern
Sourcepub fn get_best_strategy(
&self,
pattern: &ImagePattern,
) -> Option<&ProcessingStrategy>
pub fn get_best_strategy( &self, pattern: &ImagePattern, ) -> Option<&ProcessingStrategy>
Get best strategy for a given pattern
Sourcepub fn add_performance_record(&mut self, performance: f64)
pub fn add_performance_record(&mut self, performance: f64)
Add performance record
Sourcepub fn get_average_performance(&self, recent_count: usize) -> f64
pub fn get_average_performance(&self, recent_count: usize) -> f64
Get average performance over recent history
Sourcepub fn update_algorithm_confidence(&mut self, algorithm: &str, confidence: f64)
pub fn update_algorithm_confidence(&mut self, algorithm: &str, confidence: f64)
Update algorithm confidence
Sourcepub fn get_algorithm_confidence(&self, algorithm: &str) -> f64
pub fn get_algorithm_confidence(&self, algorithm: &str) -> f64
Get algorithm confidence
Sourcepub fn add_pattern_to_history(&mut self, pattern: ImagePattern)
pub fn add_pattern_to_history(&mut self, pattern: ImagePattern)
Add pattern to history
Sourcepub fn has_seen_pattern_recently(
&self,
pattern: &ImagePattern,
within_last: usize,
) -> bool
pub fn has_seen_pattern_recently( &self, pattern: &ImagePattern, within_last: usize, ) -> bool
Check if pattern has been seen recently
Sourcepub fn get_state_summary(&self) -> StateSummary
pub fn get_state_summary(&self) -> StateSummary
Get state summary for monitoring
Trait Implementations§
Source§impl Clone for AIProcessingState
impl Clone for AIProcessingState
Source§fn clone(&self) -> AIProcessingState
fn clone(&self) -> AIProcessingState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for AIProcessingState
impl RefUnwindSafe for AIProcessingState
impl Send for AIProcessingState
impl Sync for AIProcessingState
impl Unpin for AIProcessingState
impl UnsafeUnpin for AIProcessingState
impl UnwindSafe for AIProcessingState
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
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.