Commit Graph

55 Commits

Author SHA1 Message Date
Experiments DB Dev 43666b1dc6 fix(matlab): rate 0.02 grid, batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:37:11 -04:00
Experiments DB Dev d2213546b6 fix(matlab): rate 0.02 grid, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:37:10 -04:00
Experiments DB Dev 819e8d73ce fix(matlab): rate 0.02 grid, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:37:10 -04:00
Experiments DB Dev caa60509a8 feat(matlab): y-tick labels count/rate, batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:25:55 -04:00
Experiments DB Dev f03a1df9d5 feat(matlab): y-tick labels count/rate, batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:25:55 -04:00
Experiments DB Dev bff2034da4 feat(matlab): y-tick labels count/rate, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:25:55 -04:00
Experiments DB Dev a94ee28908 feat(matlab): y-tick labels count/rate, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:25:54 -04:00
Experiments DB Dev 2fd311277c feat(matlab): x-axis padding, batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:18:57 -04:00
Experiments DB Dev 044a6edc46 feat(matlab): x-axis padding, batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:18:57 -04:00
Experiments DB Dev 1a2071e6e2 feat(matlab): x-axis padding, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:18:57 -04:00
Experiments DB Dev af12ba1652 feat(matlab): x-axis padding, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:18:56 -04:00
Experiments DB Dev 94e09d6647 fix(matlab): tighter y-label offset, batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:12:12 -04:00
Experiments DB Dev 79db1c598f fix(matlab): tighter y-label offset, batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:12:11 -04:00
Experiments DB Dev ed8263525c fix(matlab): tighter y-label offset, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:12:11 -04:00
Experiments DB Dev 2e9ebd2fde fix(matlab): tighter y-label offset, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:12:11 -04:00
Experiments DB Dev 8caa0419b3 fix(matlab): halved y-label offset, batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:09:01 -04:00
Experiments DB Dev e07599d489 fix(matlab): halved y-label offset, batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:09:00 -04:00
Experiments DB Dev b04d692a3b fix(matlab): halved y-label offset, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:09:00 -04:00
Experiments DB Dev c9fcd5e261 fix(matlab): halved y-label offset, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:08:59 -04:00
Experiments DB Dev 4504a7aa4c fix(matlab): horizontal x + padded y label, batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:05:22 -04:00
Experiments DB Dev cfac649b93 fix(matlab): horizontal x + padded y label, batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:05:21 -04:00
Experiments DB Dev 28a7341100 fix(matlab): horizontal x + padded y label, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:05:21 -04:00
Experiments DB Dev fa16b6116f fix(matlab): horizontal x + padded y label, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:05:21 -04:00
Experiments DB Dev 2fe44978b5 feat(matlab): y-tick-5 + grid plots, batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:58:53 -04:00
Experiments DB Dev 4e3b95d2fc feat(matlab): y-tick-5 + grid plots, batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:58:52 -04:00
Experiments DB Dev 989cf346f9 feat(matlab): y-tick-5 + grid plots, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:58:52 -04:00
Experiments DB Dev 8fac19e42f feat(matlab): y-tick-5 + grid plots, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:58:51 -04:00
Experiments DB Dev 2749a7d208 fix(matlab): compact plot layout, batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:53:26 -04:00
Experiments DB Dev 70b07acce2 fix(matlab): compact plot layout, batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:53:26 -04:00
Experiments DB Dev 04fffcd090 fix(matlab): compact plot layout, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:53:25 -04:00
Experiments DB Dev b3ebdf6f02 fix(matlab): compact plot layout, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:53:25 -04:00
Experiments DB Dev 5ba141a9be fix(matlab): adopt user's compact plot layout for all variations
Port the unmerge_d0_5 fix (b6dc69c) into variation_plot.m: tight centred plot
box (Position [0.2 0.30 0.60 0.60]), TickDir out, and xticklabels('auto') --
which keeps x labels horizontal when they fit (<=~10 days) and auto-rotates
them when crowded (e.g. 14-day windows). Replaces the manual rotated-text hack.
Regenerated all learning-curve figures; removed the stray plotcurve.asv and
gitignored *.asv.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:53:25 -04:00
samsam2610 b6dc69c315 fix unmerge_d0_5 plot curve 2026-07-24 09:46:32 -04:00
Experiments DB Dev 20a9f7d2ea fix(matlab): vertical x-axis (manual text), batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:23:17 -04:00
Experiments DB Dev f0ba4706f8 fix(matlab): vertical x-axis (manual text), batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:23:17 -04:00
Experiments DB Dev b8a27db8cd fix(matlab): vertical x-axis (manual text), batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:23:16 -04:00
Experiments DB Dev 0d57846b00 fix(matlab): vertical x-axis (manual text), batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:23:16 -04:00
Experiments DB Dev f61ebf97b9 fix(matlab): vertical x-axis plots, batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:07:32 -04:00
Experiments DB Dev e401455351 fix(matlab): vertical x-axis plots, batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:07:32 -04:00
Experiments DB Dev bcadc54409 fix(matlab): vertical x-axis plots, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:07:31 -04:00
Experiments DB Dev a4527fead3 fix(matlab): vertical x-axis plots, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:07:31 -04:00
Experiments DB Dev fd40b6fb54 analysis(matlab): rate + count outputs, variation batch 5
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 02:32:53 -04:00
Experiments DB Dev 1606eb698b analysis(matlab): rate + count outputs, variation batch 4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 02:32:53 -04:00
Experiments DB Dev 0e16690c8f analysis(matlab): rate + count outputs, variation batch 3
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 02:32:52 -04:00
Experiments DB Dev 6ba21a1a35 analysis(matlab): rate + count outputs, variation batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 02:32:52 -04:00
Experiments DB Dev 0a438a4649 analysis(matlab): rate + count outputs, variation batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 02:32:51 -04:00
Experiments DB Dev 1009f263e8 analysis(matlab): rate-variant + vertical x-axis (templates, generators, summary)
Refactor variation_{analyze,power,logpower,plot}.m to run both count and rate
metrics; plot x-axis labels vertical (xtickangle 90). SUMMARY.csv gains
interaction_p_rate / interaction_p_rs_rate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 02:32:43 -04:00
Experiments DB Dev a2a812acc8 analysis(matlab): add paper-style learning-curve plot to every variation
Add variation_plot.m + make_variation_plot.m, dropping plotcurve.m +
learning_curve.png into all 28 variation folders. Each figure plots mean +/-
SEM successful reaches per training day for the anodal/treatment group (red)
vs control (blue), in the style of the paper ("Lines indicate mean (and SEM)
across animals in the anodal (red) and control (blue) groups"). Per-group N is
read from the data and shown in the legend; training day is 1-indexed (our day
0 = paper Day 1). Headless via exportgraphics. prev_f_full reproduces the
paper's own figure (anodal N=12 vs control N=12).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 01:28:44 -04:00
Experiments DB Dev 378ad6da05 analysis(matlab): add log(day) model + Cohen's f + power to every variation
Add variation_logpower.m (self-contained) + make_variation_logpower.m,
dropping logpowersim.m + logpower_result.txt into all 28 variation folders.
Matches the paper's power code: models behavior ~ stim + log(day) +
stim:log(day) + (1|rat) (log(day+1), since our day 0 = paper Day 1), reports
Cohen's f (partial eta^2 of the interaction) and the interaction under
residual/Satterthwaite/honest random-slope DF, then runs the Monte-Carlo power
sim on the log-day ground truth (per-animal cluster-honest + LME power).

Notable: under log(day) the accumulating divergence is captured more sharply,
so several full-window scenarios reach honest significance that were n.s. under
raw day (e.g. right_only_d0_13 honest p=0.003, unmerge_d0_13 0.021,
unmerge_d0_10 0.036); Cohen's f is small-medium (~0.10-0.34).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 14:37:50 -04:00
Experiments DB Dev bb5e2d88c0 analysis(matlab): add per-variation power simulation (powersim.m + power_result.txt)
Add variation_power.m (self-contained Monte-Carlo power for the paper's
stim x day interaction, using each folder's own data as ground truth; scores
per-animal cluster-honest power + LME power across N=[3..24] and effect
multipliers 1/0.5) and make_variation_power.m, which drops powersim.m into
every variations/<name>/ folder and runs it, writing power_result.txt beside
the existing data.csv/analyze.m/result.txt. Named powersim (not power) to
avoid shadowing the MATLAB builtin. All 28 folders processed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 13:57:25 -04:00