Skip to content

Commit def82da

Browse files
edenoclaude
andcommitted
Update non-local model discrete transition defaults to neuroscience-informed values
Non-local self-transition: 0.98→0.96 (50ms dwell, room for EM to learn from theta sequences ~30ms and replay 20-250ms). No-spike transition probability: 0.005→0.003. Stickiness for Local/No-Spike: 1e6→100k (~3min equivalent prior data — soft protection against pathological collapse while allowing EM to adapt). Regenerated golden regression data. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 58a6ed0 commit def82da

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

src/non_local_detector/models/_defaults.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,19 @@ def multi_environment_defaults():
123123
@staticmethod
124124
def non_local_defaults():
125125
"""Defaults for non-local detector (4-state, sorted and clusterless)."""
126-
no_spike_trans_prob = 5e-3
126+
# Expected dwell times at 500 Hz:
127+
# Local: 200 ms (p_self = 0.990)
128+
# No-Spike: 100 ms (p_self = 0.980)
129+
# NL-Continuous: 50 ms (p_self = 0.960)
130+
# NL-Fragmented: 50 ms (p_self = 0.960)
131+
#
132+
# Off-diagonal: remaining exit probability distributed
133+
# with small bias toward No-Spike transitions (0.003)
134+
# and equal split among other states.
135+
no_spike_trans_prob = 3e-3
127136
local_prob = 0.99
128-
cont_non_local_prob = 0.98
129-
non_local_frag_prob = 0.98
137+
cont_non_local_prob = 0.96
138+
non_local_frag_prob = 0.96
130139
no_spike_prob = 0.98
131140

132141
return {
@@ -164,8 +173,10 @@ def non_local_defaults():
164173
]
165174
)
166175
),
176+
# Stickiness prior equivalent to ~3 minutes of data at 500 Hz
177+
# for Local/No-Spike; weak prior for Non-Local states.
167178
"discrete_transition_stickiness": lambda: np.array(
168-
[1e6, 1e6, 300.0, 300.0]
179+
[100_000.0, 100_000.0, 300.0, 300.0]
169180
),
170181
"observation_models": lambda: [
171182
ObservationModel(is_local=True),
Binary file not shown.

0 commit comments

Comments
 (0)