Spaces:
Paused
Paused
Download src/signal_processing/models.py from ThomasHeisig/Brain-5D-Space: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/ThomasHeisig/Brain-5D-Space/resolve/main/src/signal_processing/models.py
- Command line
-
hf download hf://spaces/ThomasHeisig/Brain-5D-Space/src/signal_processing/models.py
-
curl -L -o models.py https://huggingface.co/spaces/ThomasHeisig/Brain-5D-Space/resolve/main/src/signal_processing/models.py
1.1 kB
| """Typed, immutable models for deterministic SNN signal interpretation.""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| class SpikeSample: | |
| """One observed spike event used to construct a signal frame.""" | |
| tick: int | |
| neuron_id: int | |
| class RegionActivity: | |
| """Aggregated activity for a named or synthetic region.""" | |
| region_id: str | |
| neuron_count: int | |
| active_neurons: int | |
| spike_count: int | |
| mean_rate_hz: float | |
| class SignalFrame: | |
| """Deterministic feature view of SNN activity. | |
| This object is the only intended input from raw SNN activity into a future language | |
| organ. It deliberately carries measurements rather than mutable network objects. | |
| """ | |
| tick_from: int | |
| tick_to: int | |
| neuron_ids: tuple[int, ...] | |
| population_rate_hz: float | |
| spike_count: int | |
| burst_index: float | |
| synchrony: float | |
| mean_energy: float | |
| mean_threshold_adaptation: float | |
| active_regions: tuple[RegionActivity, ...] | |