pub struct DomainSpecificSelector<A: Float> { /* private fields */ }
Expand description
Domain-specific optimizer selector
Implementations§
Source§impl<A: Float + ScalarOperand + Debug + Sum> DomainSpecificSelector<A>
impl<A: Float + ScalarOperand + Debug + Sum> DomainSpecificSelector<A>
Sourcepub fn new(strategy: DomainStrategy) -> Self
pub fn new(strategy: DomainStrategy) -> Self
Create a new domain-specific selector
Sourcepub fn set_context(&mut self, context: OptimizationContext<A>)
pub fn set_context(&mut self, context: OptimizationContext<A>)
Set optimization context
Sourcepub fn select_optimal_config(&mut self) -> Result<DomainOptimizationConfig<A>>
pub fn select_optimal_config(&mut self) -> Result<DomainOptimizationConfig<A>>
Select optimal configuration for the current domain and context
Sourcepub fn update_domain_performance(
&mut self,
domain: String,
metrics: DomainPerformanceMetrics<A>,
)
pub fn update_domain_performance( &mut self, domain: String, metrics: DomainPerformanceMetrics<A>, )
Update performance based on training results
Sourcepub fn record_transfer_knowledge(&mut self, knowledge: CrossDomainKnowledge<A>)
pub fn record_transfer_knowledge(&mut self, knowledge: CrossDomainKnowledge<A>)
Record cross-domain transfer knowledge
Sourcepub fn get_domain_recommendations(
&self,
domain: &str,
) -> Vec<DomainRecommendation<A>>
pub fn get_domain_recommendations( &self, domain: &str, ) -> Vec<DomainRecommendation<A>>
Get domain-specific recommendations
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for DomainSpecificSelector<A>where
A: Freeze,
impl<A> RefUnwindSafe for DomainSpecificSelector<A>where
A: RefUnwindSafe,
impl<A> Send for DomainSpecificSelector<A>where
A: Send,
impl<A> Sync for DomainSpecificSelector<A>where
A: Sync,
impl<A> Unpin for DomainSpecificSelector<A>where
A: Unpin,
impl<A> UnwindSafe for DomainSpecificSelector<A>where
A: UnwindSafe,
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> 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