Core Modules¶
Central infrastructure: model definition language parser, simulation orchestrator, and tensor streaming for spike data.
MDL Parser¶
sc_neurocore.core.mdl_parser
¶
Mind Description Language helpers for serialising orchestrator state.
MDLSpecification
dataclass
¶
Serializable MDL payload containing architecture and state sections.
Source code in src/sc_neurocore/core/mdl_parser.py
| Python | |
|---|---|
22 23 24 25 26 27 28 29 | |
MindDescriptionLanguage
¶
Parser for the Mind Description Language (MDL).
A universal, substrate-independent format for archiving an agent's architecture and state.
Source code in src/sc_neurocore/core/mdl_parser.py
| Python | |
|---|---|
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
encode(orchestrator, agent_name)
staticmethod
¶
Export the orchestrator state to a YAML MDL string.
Source code in src/sc_neurocore/core/mdl_parser.py
| Python | |
|---|---|
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
decode(mdl_string)
staticmethod
¶
Parse an MDL string back into a dictionary for reconstruction.
Source code in src/sc_neurocore/core/mdl_parser.py
| Python | |
|---|---|
58 59 60 61 62 63 64 65 66 67 68 69 70 | |
Orchestrator¶
sc_neurocore.core.orchestrator
¶
TensorStream-aware orchestrator for sequencing registered processing modules.
CognitiveOrchestrator
dataclass
¶
Central orchestrator that sequences registered modules into a pipeline.
Connects disparate processing modules and routes a :class:TensorStream
through them in execution order.
Source code in src/sc_neurocore/core/orchestrator.py
| Python | |
|---|---|
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | |
register_module(name, module_obj)
¶
Register a named module object for later pipeline execution.
Source code in src/sc_neurocore/core/orchestrator.py
| Python | |
|---|---|
35 36 37 | |
set_attention(module_name)
¶
Focus orchestrator resources on a specific module.
Source code in src/sc_neurocore/core/orchestrator.py
| Python | |
|---|---|
39 40 41 42 43 | |
execute_pipeline(pipeline, initial_input)
¶
Execute a sequence of modules, handling TensorStream conversions.
Parameters¶
pipeline : list of str Ordered module names to execute; unknown names are skipped. initial_input : TensorStream Input stream fed to the first module in the pipeline.
Returns¶
TensorStream The stream produced by the final executed module.
Source code in src/sc_neurocore/core/orchestrator.py
| Python | |
|---|---|
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | |
Tensor Stream¶
sc_neurocore.core.tensor_stream
¶
Tensor container with conversions between probability, bitstream, and quantum domains.
TensorStream
dataclass
¶
Unified tensor container for sc-neurocore.
Handles automatic conversion between the probability, bitstream, and quantum domains.
Source code in src/sc_neurocore/core/tensor_stream.py
| Python | |
|---|---|
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |
from_prob(probs)
classmethod
¶
Create a tensor stream whose data is already in probability form.
Source code in src/sc_neurocore/core/tensor_stream.py
| Python | |
|---|---|
30 31 32 33 | |
to_bitstream(length=1024)
¶
Convert probability-domain data into Bernoulli bitstreams.
Source code in src/sc_neurocore/core/tensor_stream.py
| Python | |
|---|---|
35 36 37 38 39 40 41 42 43 | |
to_prob()
¶
Convert supported domains into probability-domain tensors.
Source code in src/sc_neurocore/core/tensor_stream.py
| Python | |
|---|---|
45 46 47 48 49 50 51 52 53 54 55 56 57 | |
to_quantum()
¶
Convert probability-domain data into two-amplitude quantum encoding.
Source code in src/sc_neurocore/core/tensor_stream.py
| Python | |
|---|---|
59 60 61 62 63 64 65 66 67 68 69 | |