-
Notifications
You must be signed in to change notification settings - Fork 0
Data Structures
Raul Montoya Cardenas edited this page Jul 29, 2026
·
2 revisions

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)
Module: src/types.jl
struct SpikeBatch
spikes::Any # trains / matrices / nested vectors
times::Union{Nothing, Vector{Float32}}
targets::Any # optional supervised / teacher targets
endFlexible typing (Any) so callers can use dense Float32 arrays, sparse formats, or custom containers. Timestamps optional when time is implicit in the array axis.
struct TraceBatch
traces::Any
endContainer for eligibility traces used by local learning rules.
mutable struct TrainingState
loss::Float32
metrics::Dict{Symbol, Any}
traces::Union{Nothing, TraceBatch}
gradients::Any
endConstructed by train_step! after a step (at minimum loss + gradients from Zygote when AD succeeds).
Last updated: July 29, 2026
Updated by: Grok Build: Grok 4.5
Package tip reference: e986a66 (main, v0.2.0)
Devin DeepWiki: commit e986a66 · SynapticDistill.jl