IContextFlow<T>

Interfaces · AiDotNet.Interfaces

Interface for Context Flow mechanism - maintains distinct information pathways and update rates for each nested optimization level. Core component of nested learning paradigm.

Known implementations: ContextFlow<T>

Properties

Property Summary
int NumberOfLevels { get; } Gets the number of context flow levels.

Methods

Method Summary
Vector<T> CompressContext(Vector<T> context, int targetLevel) Compresses internal context flows (deep learning compression mechanism).
Vector<T> ComputeContextGradients(Vector<T> upstreamGradient, int level) Computes gradients with respect to context flow for backpropagation.
Vector<T> GetContextState(int level) Gets the current context state for a specific optimization level.
Vector<T> PropagateContext(Vector<T> input, int currentLevel) Propagates context through the flow network at a specific optimization level.
void Reset() Resets the context flow to initial state.
void UpdateFlow(Vector<T>[] gradients, T[] learningRates) Updates the context flow based on multi-level optimization.