pub struct NeuralAdaptiveSparseProcessor { /* private fields */ }
Expand description
Neural-adaptive sparse matrix processor
Implementations§
Source§impl NeuralAdaptiveSparseProcessor
impl NeuralAdaptiveSparseProcessor
Sourcepub fn new(config: NeuralAdaptiveConfig) -> Self
pub fn new(config: NeuralAdaptiveConfig) -> Self
Create a new neural-adaptive sparse matrix processor
Sourcepub fn optimize_operation<T>(
&mut self,
matrix_features: &[f64],
operation_context: &OperationContext,
) -> SparseResult<OptimizationStrategy>
pub fn optimize_operation<T>( &mut self, matrix_features: &[f64], operation_context: &OperationContext, ) -> SparseResult<OptimizationStrategy>
Process sparse matrix operation with adaptive optimization
Sourcepub fn learn_from_performance(
&mut self,
strategy: OptimizationStrategy,
performance: PerformanceMetrics,
matrix_features: &[f64],
operation_context: &OperationContext,
) -> SparseResult<()>
pub fn learn_from_performance( &mut self, strategy: OptimizationStrategy, performance: PerformanceMetrics, matrix_features: &[f64], operation_context: &OperationContext, ) -> SparseResult<()>
Learn from operation performance
Sourcepub fn get_statistics(&self) -> NeuralProcessorStats
pub fn get_statistics(&self) -> NeuralProcessorStats
Get processor statistics
Sourcepub fn update_target_networks(&mut self)
pub fn update_target_networks(&mut self)
Update target networks (for DQN)
Sourcepub fn save_state(&self) -> ProcessorState
pub fn save_state(&self) -> ProcessorState
Save processor state
Sourcepub fn load_state(&mut self, state: ProcessorState)
pub fn load_state(&mut self, state: ProcessorState)
Load processor state
Auto Trait Implementations§
impl !Freeze for NeuralAdaptiveSparseProcessor
impl RefUnwindSafe for NeuralAdaptiveSparseProcessor
impl Send for NeuralAdaptiveSparseProcessor
impl Sync for NeuralAdaptiveSparseProcessor
impl Unpin for NeuralAdaptiveSparseProcessor
impl UnwindSafe for NeuralAdaptiveSparseProcessor
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