BrainConfig

Struct BrainConfig 

Source
pub struct BrainConfig {
Show 31 fields pub neuron_count: usize, pub input_dim: usize, pub hidden_dim: usize, pub output_dim: usize, pub stdp_learning_rate: f64, pub neuromodulation_enabled: bool, pub attention_heads: usize, pub attention_dim: usize, pub top_down_strength: f64, pub bottom_up_strength: f64, pub phi_threshold: f64, pub broadcast_threshold: f64, pub precision: f64, pub workspace_capacity: usize, pub pattern_dim: usize, pub ca3_size: usize, pub consolidation_threshold: f64, pub max_memories: usize, pub replay_buffer_size: usize, pub sleep_cycle_length: usize, pub sws_ratio: f64, pub rem_ratio: f64, pub auto_sleep_enabled: bool, pub cycles_before_sleep: u64, pub meta_levels: usize, pub max_recursion: usize, pub self_update_rate: f64, pub mirror_depth: usize, pub batch_size: usize, pub parallel_enabled: bool, pub default_mode: BrainMode,
}
Expand description

Configuration for the Omega Brain

Fields§

§neuron_count: usize

Number of neurons in the spiking network

§input_dim: usize

Input dimension

§hidden_dim: usize

Hidden dimension

§output_dim: usize

Output dimension

§stdp_learning_rate: f64

STDP learning rate

§neuromodulation_enabled: bool

Enable neuromodulation

§attention_heads: usize

Number of attention heads

§attention_dim: usize

Attention dimension

§top_down_strength: f64

Top-down attention strength

§bottom_up_strength: f64

Bottom-up attention strength

§phi_threshold: f64

IIT integration threshold

§broadcast_threshold: f64

GWT broadcast threshold

§precision: f64

Free energy precision

§workspace_capacity: usize

Number of workspace slots

§pattern_dim: usize

Hippocampal pattern dimension

§ca3_size: usize

CA3 network size

§consolidation_threshold: f64

Memory consolidation threshold

§max_memories: usize

Maximum memories to retain

§replay_buffer_size: usize

Replay buffer size

§sleep_cycle_length: usize

Sleep cycle duration (in processing cycles)

§sws_ratio: f64

SWS duration ratio (0-1)

§rem_ratio: f64

REM duration ratio (0-1)

§auto_sleep_enabled: bool

Enable automatic sleep

§cycles_before_sleep: u64

Cycles before auto-sleep

§meta_levels: usize

Number of meta-cognitive levels

§max_recursion: usize

Maximum recursion depth

§self_update_rate: f64

Self-model update rate

§mirror_depth: usize

Mirror reflection depth

§batch_size: usize

Processing batch size

§parallel_enabled: bool

Enable parallel processing

§default_mode: BrainMode

Default brain mode

Implementations§

Source§

impl BrainConfig

Source

pub fn minimal() -> Self

Create a minimal configuration (for testing)

Source

pub fn high_capacity() -> Self

Create a high-capacity configuration

Source

pub fn validate(&self) -> Result<(), String>

Validate configuration

Trait Implementations§

Source§

impl Clone for BrainConfig

Source§

fn clone(&self) -> BrainConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BrainConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BrainConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for BrainConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for BrainConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,