pub struct AdaptiveLearningSystem { /* private fields */ }Expand description
Main adaptive learning system
Implementations§
Source§impl AdaptiveLearningSystem
impl AdaptiveLearningSystem
Sourcepub fn new(config: AdaptiveLearningConfig) -> Self
pub fn new(config: AdaptiveLearningConfig) -> Self
Create new adaptive learning system
Sourcepub async fn add_feedback(&self, feedback: UserFeedback) -> Result<()>
pub async fn add_feedback(&self, feedback: UserFeedback) -> Result<()>
Add user feedback and update learning models
Sourcepub async fn get_recommendations(
&self,
user_id: &str,
) -> Result<PersonalizedRecommendations>
pub async fn get_recommendations( &self, user_id: &str, ) -> Result<PersonalizedRecommendations>
Get personalized recommendations for a user
Sourcepub async fn get_user_preferences(
&self,
user_id: &str,
) -> Option<UserPreferences>
pub async fn get_user_preferences( &self, user_id: &str, ) -> Option<UserPreferences>
Get user preferences
Sourcepub async fn get_style_adaptation(
&self,
style_id: &str,
) -> Option<StyleAdaptation>
pub async fn get_style_adaptation( &self, style_id: &str, ) -> Option<StyleAdaptation>
Get style adaptation
Sourcepub async fn get_improvement_history(&self) -> Vec<ModelImprovement>
pub async fn get_improvement_history(&self) -> Vec<ModelImprovement>
Get model improvement history
Sourcepub async fn get_statistics(&self) -> LearningStatistics
pub async fn get_statistics(&self) -> LearningStatistics
Get learning statistics
Auto Trait Implementations§
impl Freeze for AdaptiveLearningSystem
impl !RefUnwindSafe for AdaptiveLearningSystem
impl Send for AdaptiveLearningSystem
impl Sync for AdaptiveLearningSystem
impl Unpin for AdaptiveLearningSystem
impl UnsafeUnpin for AdaptiveLearningSystem
impl !UnwindSafe for AdaptiveLearningSystem
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> 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>
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