Spaces:
Running
Running
Commit History
-
Read the night watch, and a notebook that checks a live session end to end
NightWatch was in neither block list, so a session that played 96 trials loaded 48 and the whole block went nowhere without an error. Its trials also carry night=None, like a day trial, so "not a night trial" was counting them as day trials: added day_mask(), used by the summary and by to_pyem, and the block's own design columns (both options pay, and what moves is the partner's loss). Two more things the refreshed mirror broke: audit() raised on a session with no trials at all, which is exactly the session it exists to describe, and to_pyem indexed with an object-dtype mask after a concat. The model tests now select the pilot design explicitly rather than assuming the mirror holds nothing else. 04_sona_check.ipynb is the new one: what reached the repository, whether the day grid and the night watch ran as specified, whether the manipulations move behaviour, and whether a current-design session reaches a fitted parameter. Two sessions, so it demonstrates the path and claims nothing a…670ca7d
-
Analysis pipeline: the model family
pe_analysis/models.py: the eight published fit/sim pairs (self/other k crossed with self/other beta, parabolic and linear effort cost), fitted per session with pyEM, plus integrated BIC for the comparison. It is a separate implementation from analysis/effort_models.py rather than an import. That one builds its own balanced design and takes the rest credit from a module constant, which is right for simulation and wrong here: the rest credit was 1 in every pilot session and is 2 now, and night 1 has its own again, so every real trial has to carry its own. Sharing the module would let a change made for one silently alter the other. Two models beyond the published eight, kept out of FAMILY so the headline comparison stays the published one: the day task crosses reward against effort fully, so it can separate "values their partner's credits less" from "finds effort costlier for their partner" -- but only with reward sensitivity in the model. Without it, every self/other difference is attr…dffba6e