pub struct NeuralAdaptiveConfig {Show 14 fields
pub hidden_layers: usize,
pub neurons_per_layer: usize,
pub learningrate: f64,
pub memory_capacity: usize,
pub reinforcement_learning: bool,
pub attention_heads: usize,
pub self_attention: bool,
pub rl_algorithm: RLAlgorithm,
pub exploration_rate: f64,
pub discountfactor: f64,
pub replay_buffer_size: usize,
pub modeldim: usize,
pub ff_dim: usize,
pub transformer_layers: usize,
}
Expand description
Neural-adaptive sparse matrix processor configuration
Fields§
Number of hidden layers in the neural network
neurons_per_layer: usize
Neurons per hidden layer
learningrate: f64
Learning rate for adaptive optimization
memory_capacity: usize
Memory capacity for pattern learning
reinforcement_learning: bool
Enable reinforcement learning
attention_heads: usize
Attention mechanism configuration
self_attention: bool
Enable transformer-style self-attention
rl_algorithm: RLAlgorithm
Reinforcement learning algorithm
exploration_rate: f64
Exploration rate for RL
discountfactor: f64
Discount factor for future rewards
replay_buffer_size: usize
Experience replay buffer size
modeldim: usize
Transformer model dimension
ff_dim: usize
Feed-forward network dimension in transformer
transformer_layers: usize
Number of transformer layers
Implementations§
Source§impl NeuralAdaptiveConfig
impl NeuralAdaptiveConfig
Set the number of hidden layers
Sourcepub fn with_neurons_per_layer(self, neurons: usize) -> Self
pub fn with_neurons_per_layer(self, neurons: usize) -> Self
Set neurons per layer
Sourcepub fn with_learning_rate(self, rate: f64) -> Self
pub fn with_learning_rate(self, rate: f64) -> Self
Set learning rate
Sourcepub fn with_memory_capacity(self, capacity: usize) -> Self
pub fn with_memory_capacity(self, capacity: usize) -> Self
Set memory capacity
Sourcepub fn with_reinforcement_learning(self, enabled: bool) -> Self
pub fn with_reinforcement_learning(self, enabled: bool) -> Self
Enable or disable reinforcement learning
Sourcepub fn with_attention_heads(self, heads: usize) -> Self
pub fn with_attention_heads(self, heads: usize) -> Self
Set number of attention heads
Sourcepub fn with_self_attention(self, enabled: bool) -> Self
pub fn with_self_attention(self, enabled: bool) -> Self
Enable or disable self-attention
Sourcepub fn with_rl_algorithm(self, algorithm: RLAlgorithm) -> Self
pub fn with_rl_algorithm(self, algorithm: RLAlgorithm) -> Self
Set RL algorithm
Sourcepub fn with_exploration_rate(self, rate: f64) -> Self
pub fn with_exploration_rate(self, rate: f64) -> Self
Set exploration rate
Sourcepub fn with_discount_factor(self, factor: f64) -> Self
pub fn with_discount_factor(self, factor: f64) -> Self
Set discount factor
Sourcepub fn with_replay_buffer_size(self, size: usize) -> Self
pub fn with_replay_buffer_size(self, size: usize) -> Self
Set replay buffer size
Sourcepub fn with_model_dim(self, dim: usize) -> Self
pub fn with_model_dim(self, dim: usize) -> Self
Set transformer model dimension
Sourcepub fn with_ff_dim(self, dim: usize) -> Self
pub fn with_ff_dim(self, dim: usize) -> Self
Set feed-forward dimension
Sourcepub fn with_transformer_layers(self, layers: usize) -> Self
pub fn with_transformer_layers(self, layers: usize) -> Self
Set number of transformer layers
Sourcepub fn lightweight() -> Self
pub fn lightweight() -> Self
Create a lightweight configuration for testing
Sourcepub fn high_performance() -> Self
pub fn high_performance() -> Self
Create a high-performance configuration
Sourcepub fn memory_efficient() -> Self
pub fn memory_efficient() -> Self
Create a memory-efficient configuration
Trait Implementations§
Source§impl Clone for NeuralAdaptiveConfig
impl Clone for NeuralAdaptiveConfig
Source§fn clone(&self) -> NeuralAdaptiveConfig
fn clone(&self) -> NeuralAdaptiveConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NeuralAdaptiveConfig
impl Debug for NeuralAdaptiveConfig
Auto Trait Implementations§
impl Freeze for NeuralAdaptiveConfig
impl RefUnwindSafe for NeuralAdaptiveConfig
impl Send for NeuralAdaptiveConfig
impl Sync for NeuralAdaptiveConfig
impl Unpin for NeuralAdaptiveConfig
impl UnwindSafe for NeuralAdaptiveConfig
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 more