pub struct CognitiveMinCutEngine { /* private fields */ }Expand description
The unified Cognitive MinCut Engine
Implementations§
Source§impl CognitiveMinCutEngine
impl CognitiveMinCutEngine
Sourcepub fn new(graph: DynamicGraph, config: EngineConfig) -> Self
pub fn new(graph: DynamicGraph, config: EngineConfig) -> Self
Create a new Cognitive MinCut Engine
Sourcepub fn set_mode(&mut self, mode: OperationMode)
pub fn set_mode(&mut self, mode: OperationMode)
Set operation mode
Sourcepub fn run_until_converged(&mut self) -> (Vec<Spike>, bool)
pub fn run_until_converged(&mut self) -> (Vec<Spike>, bool)
Run until convergence or max steps
Sourcepub fn current_energy(&self) -> f64
pub fn current_energy(&self) -> f64
Get current energy
Sourcepub fn graph(&self) -> &DynamicGraph
pub fn graph(&self) -> &DynamicGraph
Get primary graph
Sourcepub fn graph_mut(&mut self) -> &mut DynamicGraph
pub fn graph_mut(&mut self) -> &mut DynamicGraph
Get mutable graph
Sourcepub fn metrics(&self) -> &EngineMetrics
pub fn metrics(&self) -> &EngineMetrics
Get metrics
Sourcepub fn causal_graph(&self) -> Option<CausalGraph>
pub fn causal_graph(&self) -> Option<CausalGraph>
Get causal graph (if available)
Sourcepub fn current_phase(&self) -> Option<usize>
pub fn current_phase(&self) -> Option<usize>
Get current phase (from time crystal)
Sourcepub fn at_attractor(&self) -> bool
pub fn at_attractor(&self) -> bool
Get attractor status
Sourcepub fn pattern(&self) -> Option<TuringPattern>
pub fn pattern(&self) -> Option<TuringPattern>
Get morphogenetic pattern
Sourcepub fn energy_landscape(&self) -> Option<&EnergyLandscape>
pub fn energy_landscape(&self) -> Option<&EnergyLandscape>
Get energy landscape
Sourcepub fn search(&self, query: &[f64], k: usize) -> Vec<VertexId> ⓘ
pub fn search(&self, query: &[f64], k: usize) -> Vec<VertexId> ⓘ
Subpolynomial search exploiting all learned structures
Sourcepub fn record_event(&mut self, event: GraphEvent)
pub fn record_event(&mut self, event: GraphEvent)
Record external event for causal analysis
Sourcepub fn summary(&self) -> EngineSummary
pub fn summary(&self) -> EngineSummary
Get summary of engine state
Auto Trait Implementations§
impl !Freeze for CognitiveMinCutEngine
impl !RefUnwindSafe for CognitiveMinCutEngine
impl Send for CognitiveMinCutEngine
impl Sync for CognitiveMinCutEngine
impl Unpin for CognitiveMinCutEngine
impl UnwindSafe for CognitiveMinCutEngine
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