pub struct OnlineLearningSystem {
pub memory: HDCMemory,
pub continual_memory: ContinualLearningMemory,
pub performance_tracker: PerformanceTracker,
pub adaptation_params: AdaptationParameters,
pub learning_state: LearningState,
}Expand description
Online Learning System with adaptive capabilities
Fields§
§memory: HDCMemoryCore memory system
continual_memory: ContinualLearningMemoryContinual learning memory
performance_tracker: PerformanceTrackerPerformance tracker
adaptation_params: AdaptationParametersAdaptation parameters
learning_state: LearningStateCurrent learning state
Implementations§
Source§impl OnlineLearningSystem
impl OnlineLearningSystem
Sourcepub fn predict(&self, input: &Hypervector) -> NdimageResult<PredictionResult>
pub fn predict(&self, input: &Hypervector) -> NdimageResult<PredictionResult>
Sourcepub fn update_with_feedback(
&mut self,
input: &Hypervector,
correct_label: &str,
learning_rate: f64,
prediction_error: f64,
) -> NdimageResult<UpdateResult>
pub fn update_with_feedback( &mut self, input: &Hypervector, correct_label: &str, learning_rate: f64, prediction_error: f64, ) -> NdimageResult<UpdateResult>
Sourcepub fn online_learning_step(
&mut self,
input: &Hypervector,
true_label: Option<&str>,
) -> NdimageResult<OnlineLearningResult>
pub fn online_learning_step( &mut self, input: &Hypervector, true_label: Option<&str>, ) -> NdimageResult<OnlineLearningResult>
Sourcepub fn get_performancemetrics(&self) -> PerformanceMetrics
pub fn get_performancemetrics(&self) -> PerformanceMetrics
Get current performance metrics
Sourcepub fn perform_maintenance_cycle(
&mut self,
_config: &HDCConfig,
) -> NdimageResult<()>
pub fn perform_maintenance_cycle( &mut self, _config: &HDCConfig, ) -> NdimageResult<()>
Perform maintenance cycle (cleanup, consolidation, etc.)
Sourcepub fn get_learning_state(&self) -> &LearningState
pub fn get_learning_state(&self) -> &LearningState
Get the current learning state
Sourcepub fn compute_adaptive_learning_rate(&self, prediction_error: f64) -> f64
pub fn compute_adaptive_learning_rate(&self, prediction_error: f64) -> f64
Compute adaptive learning rate based on prediction error
Sourcepub fn unsupervised_update(
&mut self,
input: &Hypervector,
) -> NdimageResult<UpdateResult>
pub fn unsupervised_update( &mut self, input: &Hypervector, ) -> NdimageResult<UpdateResult>
Perform unsupervised update
Sourcepub fn get_performance_metrics(&self) -> PerformanceMetrics
pub fn get_performance_metrics(&self) -> PerformanceMetrics
Get performance metrics (renamed method)
Sourcepub fn get_current_adaptation_rate(&self) -> f64
pub fn get_current_adaptation_rate(&self) -> f64
Get current adaptation rate
Trait Implementations§
Source§impl Clone for OnlineLearningSystem
impl Clone for OnlineLearningSystem
Source§fn clone(&self) -> OnlineLearningSystem
fn clone(&self) -> OnlineLearningSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OnlineLearningSystem
impl RefUnwindSafe for OnlineLearningSystem
impl Send for OnlineLearningSystem
impl Sync for OnlineLearningSystem
impl Unpin for OnlineLearningSystem
impl UnsafeUnpin for OnlineLearningSystem
impl UnwindSafe for OnlineLearningSystem
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 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.