Adapters¶
Domain-specific adapter layer. The base adapter defines the interface;
holonomic adapters map between SCPN layers and external coordinate systems.
All 16 L1-L16 adapters are registered in the global ComponentRegistry
and accessible via the create_adapter(layer) factory.
Base Adapter¶
sc_neurocore.adapters.base
¶
Base interface for sc-neurocore adapters.
Adapters map domain-specific dynamics (Biology, Physics, etc.) into stochastic bitstreams and JAX-accelerated kernels.
BaseStochasticAdapter
¶
Bases: ABC
Abstract base class for all domain-specific adapters.
Source code in src/sc_neurocore/adapters/base.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
encode(state)
abstractmethod
¶
Map domain state to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/base.py
26 27 28 29 | |
step_jax(dt, inputs=None)
abstractmethod
¶
The JAX-accelerated mathematical kernel for the domain dynamics.
Source code in src/sc_neurocore/adapters/base.py
31 32 33 34 | |
decode(bitstreams)
abstractmethod
¶
Map stochastic bitstreams back to domain-specific observables.
Source code in src/sc_neurocore/adapters/base.py
36 37 38 39 | |
get_metrics()
abstractmethod
¶
Return domain-specific metrics (e.g. Coherence, Concentration).
Source code in src/sc_neurocore/adapters/base.py
41 42 43 44 | |
Holonomic Atlas (L1-L16)¶
sc_neurocore.adapters.holonomic
¶
Holonomic adapters for SCPN layers 1-16.
L1_QuantumAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Quantum Biological layer.
Source code in src/sc_neurocore/adapters/holonomic/l1_quantum.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |
encode(domain_state)
¶
Maps coherence probabilities to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l1_quantum.py
65 66 67 68 69 70 71 72 | |
step_jax(dt, inputs=None)
¶
Advances the L1 holonomic dynamics using JAX.
inputs: (n_qubits, bitstream_length) representing metabolic/field drive (L4 or L13). Returns: (n_qubits, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l1_quantum.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
decode(bitstreams)
¶
Maps bitstreams back to global coherence metric.
Source code in src/sc_neurocore/adapters/holonomic/l1_quantum.py
130 131 132 133 134 | |
get_metrics()
¶
Returns L1-specific metrics like Coherence and Pumping levels.
Source code in src/sc_neurocore/adapters/holonomic/l1_quantum.py
136 137 138 139 140 141 142 143 | |
L2_NeurochemicalAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Neurochemical layer.
Source code in src/sc_neurocore/adapters/holonomic/l2_chem.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
encode(domain_state)
¶
Maps neurochemical concentrations to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l2_chem.py
68 69 70 71 72 73 74 75 76 | |
step_jax(dt, inputs=None)
¶
Advances the L2 holonomic dynamics using JAX.
inputs: (n_transmitters, bitstream_length) representing L1 or L5 feedback. Returns: (n_transmitters, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l2_chem.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | |
decode(bitstreams)
¶
Maps bitstreams back to neurochemical concentrations.
Source code in src/sc_neurocore/adapters/holonomic/l2_chem.py
121 122 123 124 125 126 127 128 129 130 131 | |
get_metrics()
¶
Returns L2-specific metrics like Field Potential and Tonus.
Source code in src/sc_neurocore/adapters/holonomic/l2_chem.py
133 134 135 136 137 138 139 140 | |
L3_GenomicAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Genomic/Epigenomic layer.
Source code in src/sc_neurocore/adapters/holonomic/l3_gen.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
encode(domain_state)
¶
Maps accessibility states to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l3_gen.py
65 66 67 68 69 70 71 72 | |
step_jax(dt, inputs=None)
¶
Advances the L3 CBC bridge dynamics using JAX.
inputs: (n_genes, bitstream_length) representing L1/L2 feedback (e.g. Ca2+ levels). Returns: (n_genes, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l3_gen.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |
decode(bitstreams)
¶
Maps bitstreams back to average genomic accessibility.
Source code in src/sc_neurocore/adapters/holonomic/l3_gen.py
116 117 118 119 120 121 122 123 | |
get_metrics()
¶
Returns L3-specific metrics like Spin Polarization and Bio-Potential.
Source code in src/sc_neurocore/adapters/holonomic/l3_gen.py
125 126 127 128 129 130 131 132 133 | |
L4_CellularAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Cellular-Tissue layer.
Source code in src/sc_neurocore/adapters/holonomic/l4_cell.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
encode(domain_state)
¶
Maps synchronization activity to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l4_cell.py
61 62 63 64 65 66 67 68 69 70 71 | |
step_jax(dt, inputs=None)
¶
Advances the L4 holonomic dynamics using JAX.
inputs: (n_cells, bitstream_length) representing L3 Genomic drive. Returns: (n_cells, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l4_cell.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
decode(bitstreams)
¶
Maps bitstreams back to Kuramoto order parameter.
Source code in src/sc_neurocore/adapters/holonomic/l4_cell.py
115 116 117 118 119 120 121 | |
get_metrics()
¶
Returns L4-specific metrics.
Source code in src/sc_neurocore/adapters/holonomic/l4_cell.py
123 124 125 126 127 128 129 130 | |
L5_OrganismalAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Organismal-Psychoemotional layer.
Source code in src/sc_neurocore/adapters/holonomic/l5_org.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | |
encode(domain_state)
¶
Maps organismal state to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l5_org.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
step_jax(dt, inputs=None)
¶
Advances the L5 holonomic dynamics using JAX.
inputs: (n_nodes, bitstream_length) representing L4 synchronization. Returns: (n_nodes, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l5_org.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
decode(bitstreams)
¶
Maps bitstreams back to average valence and HRV coherence.
Source code in src/sc_neurocore/adapters/holonomic/l5_org.py
120 121 122 123 124 125 126 127 | |
get_metrics()
¶
Returns L5-specific metrics.
Source code in src/sc_neurocore/adapters/holonomic/l5_org.py
129 130 131 132 133 134 135 136 137 | |
L6_PlanetaryAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Planetary-Biospheric layer.
Source code in src/sc_neurocore/adapters/holonomic/l6_plan.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
encode(domain_state)
¶
Maps planetary coherence to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l6_plan.py
63 64 65 66 67 68 69 70 | |
step_jax(dt, inputs=None)
¶
Advances the L6 holonomic dynamics using JAX.
inputs: (n_regions, bitstream_length) representing L5 Organismal output. Returns: (n_regions, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l6_plan.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
decode(bitstreams)
¶
Maps bitstreams back to Global Consciousness Index.
Source code in src/sc_neurocore/adapters/holonomic/l6_plan.py
125 126 127 128 129 | |
get_metrics()
¶
Returns L6-specific metrics like Gaia Potential and Schumann Alignment.
Source code in src/sc_neurocore/adapters/holonomic/l6_plan.py
131 132 133 134 135 136 137 138 139 | |
L7_SymbolicAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Geometrical-Symbolic layer.
Source code in src/sc_neurocore/adapters/holonomic/l7_sym.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
encode(domain_state)
¶
Maps symbolic phases to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l7_sym.py
71 72 73 74 75 76 77 78 79 80 81 | |
step_jax(dt, inputs=None)
¶
Advances the L7 holonomic dynamics using JAX.
inputs: (n_nodes, bitstream_length) representing L6 or L8 signals. Returns: (n_nodes, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l7_sym.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
decode(bitstreams)
¶
Maps bitstreams back to Symbolic Coherence.
Source code in src/sc_neurocore/adapters/holonomic/l7_sym.py
120 121 122 123 124 | |
get_metrics()
¶
Returns L7-specific metrics like Routing Density.
Source code in src/sc_neurocore/adapters/holonomic/l7_sym.py
126 127 128 129 130 131 132 133 | |
L8_CosmicAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Cosmic Phase-Locking layer.
Source code in src/sc_neurocore/adapters/holonomic/l8_cosm.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
encode(domain_state)
¶
Maps cosmic phases to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l8_cosm.py
64 65 66 67 68 69 70 71 72 73 | |
step_jax(dt, inputs=None)
¶
Advances the L8 holonomic dynamics using JAX.
inputs: (n_pulsars, bitstream_length) representing L7 Symbolic feedback. Returns: (n_pulsars, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l8_cosm.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
decode(bitstreams)
¶
Maps bitstreams back to Cosmic Alignment.
Source code in src/sc_neurocore/adapters/holonomic/l8_cosm.py
115 116 117 118 119 | |
get_metrics()
¶
Returns L8-specific metrics.
Source code in src/sc_neurocore/adapters/holonomic/l8_cosm.py
121 122 123 124 125 126 127 128 | |
L9_MemoryAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Existential Memory layer.
Source code in src/sc_neurocore/adapters/holonomic/l9_mem.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
encode(domain_state)
¶
Maps memory imprints to stochastic bitstreams via TSVF overlap.
Source code in src/sc_neurocore/adapters/holonomic/l9_mem.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
step_jax(dt, inputs=None)
¶
Advances the L9 holonomic dynamics using JAX.
inputs: (N, bitstream_length) representing L5 Organismal state to imprint. Returns: (bitstream_length,) retrieval bitstream.
Source code in src/sc_neurocore/adapters/holonomic/l9_mem.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
decode(bitstreams)
¶
Maps bitstreams back to Memory Retrieval quality.
Source code in src/sc_neurocore/adapters/holonomic/l9_mem.py
130 131 132 133 134 | |
get_metrics()
¶
Returns L9-specific metrics.
Source code in src/sc_neurocore/adapters/holonomic/l9_mem.py
136 137 138 139 140 141 142 143 144 145 146 147 | |
L10_FirewallAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Topological Firewall layer.
Source code in src/sc_neurocore/adapters/holonomic/l10_fire.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
encode(domain_state)
¶
Maps firewall strength to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l10_fire.py
59 60 61 62 63 64 65 66 | |
step_jax(dt, inputs=None)
¶
Advances the L10 holonomic dynamics using JAX.
inputs: (n_boundary_nodes, bitstream_length) representing external noise or L14 signals. Returns: (n_boundary_nodes, bitstream_length) output bitstreams (Shielding signals).
Source code in src/sc_neurocore/adapters/holonomic/l10_fire.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
decode(bitstreams)
¶
Maps bitstreams back to Firewall Integrity index.
Source code in src/sc_neurocore/adapters/holonomic/l10_fire.py
117 118 119 120 121 | |
get_metrics()
¶
Returns L10-specific metrics.
Source code in src/sc_neurocore/adapters/holonomic/l10_fire.py
123 124 125 126 127 128 129 130 | |
L11_NoosphericAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Noospheric layer.
Source code in src/sc_neurocore/adapters/holonomic/l11_noos.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
encode(domain_state)
¶
Maps cultural spins to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l11_noos.py
61 62 63 64 65 66 67 68 | |
step_jax(dt, inputs=None)
¶
Advances the L11 holonomic dynamics using JAX.
inputs: (n_nodes, bitstream_length) representing L7 Symbolic or L10 Firewall signals. Returns: (n_nodes, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l11_noos.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
decode(bitstreams)
¶
Maps bitstreams back to Noospheric Polarization index.
Source code in src/sc_neurocore/adapters/holonomic/l11_noos.py
111 112 113 114 115 116 117 118 119 120 | |
get_metrics()
¶
Returns L11-specific metrics like Polarization and Info Density.
Source code in src/sc_neurocore/adapters/holonomic/l11_noos.py
122 123 124 125 126 127 128 129 130 | |
L12_GaianAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Ecological-Gaian layer.
Source code in src/sc_neurocore/adapters/holonomic/l12_gaian.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
encode(domain_state)
¶
Maps ecological coherence to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l12_gaian.py
63 64 65 66 67 68 69 70 | |
step_jax(dt, inputs=None)
¶
Advances the L12 holonomic dynamics using JAX.
inputs: (n_nodes, bitstream_length) representing L6 Planetary or L11 Noospheric drive. Returns: (n_nodes, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l12_gaian.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
decode(bitstreams)
¶
Maps bitstreams back to Gaian Synchrony Index.
Source code in src/sc_neurocore/adapters/holonomic/l12_gaian.py
124 125 126 127 128 129 130 131 | |
get_metrics()
¶
Returns L12-specific metrics like Coherence and Flow.
Source code in src/sc_neurocore/adapters/holonomic/l12_gaian.py
133 134 135 136 137 138 139 140 141 | |
L13_SourceAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Source-Field layer.
Source code in src/sc_neurocore/adapters/holonomic/l13_source.py
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 100 101 102 103 104 105 106 107 108 109 110 111 | |
encode(domain_state)
¶
Maps vacuum potential to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l13_source.py
58 59 60 61 62 63 64 65 | |
step_jax(dt, inputs=None)
¶
Advances the L13 holonomic dynamics using JAX.
inputs: Optional feedback from L16 (Cybernetic Closure). Returns: (n_vacuum_nodes, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l13_source.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
decode(bitstreams)
¶
Maps bitstreams back to Primordial Coherence.
Source code in src/sc_neurocore/adapters/holonomic/l13_source.py
98 99 100 101 102 | |
get_metrics()
¶
Returns L13-specific metrics.
Source code in src/sc_neurocore/adapters/holonomic/l13_source.py
104 105 106 107 108 109 110 111 | |
L14_TransdimensionalAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Transdimensional layer.
Source code in src/sc_neurocore/adapters/holonomic/l14_trans.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
encode(domain_state)
¶
Maps resonance alignment to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l14_trans.py
58 59 60 61 62 63 64 65 | |
step_jax(dt, inputs=None)
¶
Advances the L14 holonomic dynamics using JAX.
inputs: (N, bitstream_length) representing L8 Cosmic PTA signals. Returns: (n_bulk_dimensions, bitstream_length) output bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l14_trans.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
decode(bitstreams)
¶
Maps bitstreams back to Brane Alignment index.
Source code in src/sc_neurocore/adapters/holonomic/l14_trans.py
109 110 111 112 113 | |
get_metrics()
¶
Returns L14-specific metrics.
Source code in src/sc_neurocore/adapters/holonomic/l14_trans.py
115 116 117 118 119 120 121 122 | |
L15_ConsiliumAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Consilium layer.
Source code in src/sc_neurocore/adapters/holonomic/l15_cons.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
encode(domain_state)
¶
Maps executive optimization state to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l15_cons.py
62 63 64 65 66 67 68 69 70 | |
step_jax(dt, inputs=None)
¶
Advances the L15 holonomic dynamics using JAX.
inputs: (16, bitstream_length) representing coherences of all 16 layers. Returns: (16, bitstream_length) output bitstreams (Executive steering).
Source code in src/sc_neurocore/adapters/holonomic/l15_cons.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
decode(bitstreams)
¶
Maps bitstreams back to Global Coherence Index.
Source code in src/sc_neurocore/adapters/holonomic/l15_cons.py
123 124 125 126 127 | |
get_metrics()
¶
Returns L15-specific metrics.
Source code in src/sc_neurocore/adapters/holonomic/l15_cons.py
129 130 131 132 133 134 135 136 137 138 139 | |
L16_MetaAdapter
¶
Bases: BaseStochasticAdapter
JAX-traceable adapter for the SCPN Cybernetic Closure layer (The Director).
Source code in src/sc_neurocore/adapters/holonomic/l16_meta.py
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
encode(domain_state)
¶
Maps director's will to stochastic bitstreams.
Source code in src/sc_neurocore/adapters/holonomic/l16_meta.py
60 61 62 63 64 65 66 67 68 69 | |
step_jax(dt, inputs=None)
¶
Advances the L16 holonomic dynamics using JAX.
inputs: (1, bitstream_length) representing L15 GCI executive signal. Returns: (n_meta_nodes, bitstream_length) output bitstreams (The Master Directive).
Source code in src/sc_neurocore/adapters/holonomic/l16_meta.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |
decode(bitstreams)
¶
Maps bitstreams back to Cybernetic Will index.
Source code in src/sc_neurocore/adapters/holonomic/l16_meta.py
116 117 118 119 120 | |
get_metrics()
¶
Returns L16-specific metrics.
Source code in src/sc_neurocore/adapters/holonomic/l16_meta.py
122 123 124 125 126 127 128 129 130 | |
create_adapter(layer)
¶
Factory: create adapter by layer number (1-16).
Source code in src/sc_neurocore/adapters/holonomic/__init__.py
56 57 58 59 60 | |
SpikeInterface / Neo Adapter¶
Import experimental spike data into SC-NeuroCore. Converts between SpikeInterface sorting results and SC-NeuroCore representations (bitstream matrices, Population inputs, SC probabilities).
sc_neurocore.adapters.spikeinterface
¶
SpikeInterface/Neo adapter: import experimental spike data into SC-NeuroCore.
Converts between SpikeInterface sorting results (or raw spike trains) and SC-NeuroCore's internal representations (Population spike arrays, TensorStream, bitstream encoding).
Without SpikeInterface installed, provides pure-NumPy conversion functions that accept the same data format (unit_ids, spike_times).
from sc_neurocore.adapters.spikeinterface import (
spike_trains_to_bitstreams,
spike_trains_to_population_input,
from_sorting, # requires spikeinterface
)
spike_trains_to_bitstreams(spike_times, duration_ms, dt=1.0)
¶
Convert spike times to binary bitstream matrix.
Parameters¶
spike_times : dict mapping unit_id → array of spike times (ms) duration_ms : float Total recording duration in ms. dt : float Time bin width in ms.
Returns¶
np.ndarray Shape (n_units, n_bins), dtype uint8, binary {0, 1}.
Source code in src/sc_neurocore/adapters/spikeinterface.py
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 | |
spike_trains_to_population_input(spike_times, duration_ms, dt=1.0)
¶
Convert spike times to current input array for Population.step_all().
Each spike becomes a current pulse of amplitude 1.0 at the spike time bin.
Parameters¶
spike_times : dict mapping unit_id → array of spike times (ms) duration_ms : float dt : float
Returns¶
np.ndarray Shape (n_timesteps, n_units), suitable for time-stepped simulation.
Source code in src/sc_neurocore/adapters/spikeinterface.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
firing_rates_to_sc_probs(spike_times, duration_ms, max_rate_hz=100.0)
¶
Convert firing rates to SC probabilities in [0, 1].
Parameters¶
spike_times : dict mapping unit_id → array of spike times (ms) duration_ms : float max_rate_hz : float Rate corresponding to probability 1.0.
Returns¶
np.ndarray Shape (n_units,), probabilities in [0, 1].
Source code in src/sc_neurocore/adapters/spikeinterface.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
from_sorting(sorting, dt=1.0)
¶
Convert a SpikeInterface SortingExtractor to bitstream matrix.
Parameters¶
sorting : spikeinterface.core.BaseSorting SpikeInterface sorting result. dt : float Time bin width in ms.
Returns¶
np.ndarray Shape (n_units, n_bins), dtype uint8.
Source code in src/sc_neurocore/adapters/spikeinterface.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
Plugin Discovery¶
Community-contributed adapters can be discovered via importlib.metadata
entry points in group sc_neurocore.adapters.
sc_neurocore.utils.adapter_discovery
¶
discover_adapters()
¶
Auto-discover adapter plugins via importlib.metadata entry points.
Looks for entry points in group sc_neurocore.adapters.
Each entry point should point to a class inheriting BaseStochasticAdapter.
Source code in src/sc_neurocore/utils/adapter_discovery.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |