Skip to content

phase-brain-optimize

The brain-optimize phase covers parameter exploration and model fitting โ€” sweeping a parameter space to map model behaviour, or optimising parameters to match experimental data.

Approach

  • Identify the goal early: exploratory sweep vs targeted fitting to experimental data
  • Write optimize-plan.md before any code โ€” parameters, bounds, cost function, algorithm, convergence criterion
  • Always run a minimal smoke test (2โ€“3 evaluations) before launching a full search
  • Prefer algorithms suited to the problem: grid search for low-dimensional spaces; differential evolution or Bayesian optimisation for high-dimensional or expensive simulations

Relevant skills

  • neuroflow:neuroflow-core โ€” read first; defines the command lifecycle and .neuroflow/ write rules

Workflow hints

  • All optimisation scripts and raw results go to output_path (models/optimize/), not inside .neuroflow/
  • Save optimize-plan.md and post-run summaries to .neuroflow/brain-optimize/
  • Log algorithm choice and cost function rationale in .neuroflow/reasoning/brain-optimize.json
  • Common libraries: DEAP, Optuna, scipy.optimize, BluePyOpt, scikit-optimize

Slash command

/neuroflow:brain-optimize โ€” runs this workflow as a slash command.