本文へ移動
cccskills
無料GitHub で公開

brian2

Use Brian2 for clock-driven spiking-neural-network modeling, simulation, synaptic connectivity, input generation, recording, physical-unit equations, spatial neurons, runtime code generation, and C++ standalone workflows.

インストール方法を見る

含まれるファイル(51)

  • SKILL.md4.6 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json342 B
  • references/troubleshooting.md4.9 KB
  • scripts/check_brian2_env.py2.1 KB
  • sub-skills/code-generation/references/api-reference.md6.1 KB
  • sub-skills/code-generation/references/optional-backends.md3.2 KB
  • sub-skills/code-generation/references/runtime-targets.md4.3 KB
  • sub-skills/code-generation/references/standalone-workflows.md6.0 KB
  • sub-skills/code-generation/references/troubleshooting.md6.7 KB
  • sub-skills/code-generation/scripts/standalone_smoke.py3.4 KB
  • sub-skills/code-generation/SKILL.md5.3 KB
  • sub-skills/configuration-and-troubleshooting/references/installation.md9.2 KB
  • sub-skills/configuration-and-troubleshooting/references/preferences-and-cache.md7.0 KB
  • sub-skills/configuration-and-troubleshooting/references/troubleshooting.md14.4 KB
  • sub-skills/configuration-and-troubleshooting/scripts/check_brian2_env.py15.3 KB
  • sub-skills/configuration-and-troubleshooting/SKILL.md5.4 KB
  • sub-skills/modeling/references/api-reference.md10.8 KB
  • sub-skills/modeling/references/troubleshooting.md8.1 KB
  • sub-skills/modeling/references/workflows.md6.7 KB
  • sub-skills/modeling/scripts/model_smoke.py3.0 KB
  • sub-skills/modeling/SKILL.md4.1 KB
  • sub-skills/recording/references/api-reference.md7.5 KB
  • sub-skills/recording/references/data-and-memory.md6.1 KB
  • sub-skills/recording/references/troubleshooting.md8.8 KB
  • sub-skills/recording/references/workflows.md7.0 KB
  • sub-skills/recording/scripts/monitor_smoke.py4.9 KB
  • sub-skills/recording/SKILL.md4.7 KB
  • sub-skills/simulation-and-recording/references/api-reference.md7.0 KB
  • sub-skills/simulation-and-recording/references/multiple-runs.md5.6 KB
  • sub-skills/simulation-and-recording/references/troubleshooting.md7.2 KB
  • sub-skills/simulation-and-recording/references/workflows.md4.9 KB
  • sub-skills/simulation-and-recording/scripts/network_smoke.py2.7 KB
  • sub-skills/simulation-and-recording/SKILL.md2.1 KB
  • sub-skills/spatial-models/references/api-reference.md9.8 KB
  • sub-skills/spatial-models/references/morphology-workflows.md8.1 KB
  • sub-skills/spatial-models/references/troubleshooting.md11.0 KB
  • sub-skills/spatial-models/scripts/spatial_smoke.py5.7 KB
  • sub-skills/spatial-models/SKILL.md4.3 KB
  • sub-skills/synapses-and-inputs/references/api-reference.md9.8 KB
  • sub-skills/synapses-and-inputs/references/connectivity-and-plasticity.md4.2 KB
  • sub-skills/synapses-and-inputs/references/troubleshooting.md5.6 KB
  • sub-skills/synapses-and-inputs/references/workflows.md5.8 KB
  • sub-skills/synapses-and-inputs/scripts/connectivity_smoke.py2.3 KB
  • sub-skills/synapses-and-inputs/SKILL.md2.7 KB
  • sub-skills/units-and-equations/references/api-reference.md6.6 KB
  • sub-skills/units-and-equations/references/equation-syntax.md5.9 KB
  • sub-skills/units-and-equations/references/numerical-methods.md5.3 KB
  • sub-skills/units-and-equations/references/troubleshooting.md8.5 KB
  • sub-skills/units-and-equations/scripts/unit_equation_smoke.py8.0 KB
  • sub-skills/units-and-equations/SKILL.md3.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Brian2

Brian2 is a Python simulator for spiking neural networks. Use this skill when a request names Brian2, NeuronGroup, Synapses, Network, monitors, Brian units/equations, set_device, cpp_standalone, or a related simulation error. This skill is a self-contained operating guide for Brian2 2.9.0-style APIs; it does not require reopening the source repository.

Start safely

  1. Establish an isolated Python environment with Python >=3.12.
  2. Install the public distribution with python -m pip install brian2 (or use the documented Conda package). Install optional packages only for a selected workflow: a C++ compiler for Cython/standalone, GSL for GSL state updaters, and plotting/scientific packages only when needed.
  3. Verify the installation from a neutral working directory: python -c "import brian2; print(brian2.__version__)".
  4. For a read-only environment report, run scripts/check_brian2_env.py. It reports package/import/compiler/optional-dependency signals without changing files.
  5. Begin with prefs.codegen.target = "numpy" and a tiny model when compiler availability is unknown. Move to Cython or C++ standalone only after reading the code-generation route and its limitations.

Choose the route

  • Neuron equations, thresholds, resets, refractory behavior, subgroups, or custom events: read modeling.
  • Units, equation-string grammar, namespaces, stochastic terms, or state updaters: read units-and-equations.
  • Synapses, connectivity, delays, STDP, Poisson input, replay, or TimedArray: read synapses-and-inputs.
  • run, Network, clocks, scheduling, snapshots, repeated trials, or progress/profile diagnostics: read simulation-and-recording.
  • Spike/state/rate/event monitors, subset recording, export, or memory control: read recording.
  • Cython/NumPy targets, set_device, C++ standalone, compiler/cache issues, or GSL: read code-generation.
  • Morphology, compartments, SpatialNeuron, or SWC/section geometry: read spatial-models.
  • Installation, preferences, cache, logging, missing dependencies, or a cross-cutting failure: read configuration-and-troubleshooting.

Most real tasks cross routes: define and validate equations first, create synapses and inputs second, assemble an explicit Network for nontrivial lifecycle control, add monitors before running, and choose a device only after the CPU/NumPy behavior is understood. Follow the links above rather than copying every API table into this router.

Core invariants

  • A model equation is a Brian expression string, not arbitrary Python. Use Brian's bare supported functions (sin, exp, clip, rand, etc.) and declare dimensions explicitly.
  • Synapses(...) defines pathways but does not create connections; call connect(...) before assigning synaptic state.
  • A StateMonitor records at its configured schedule (default when="start"), and its array index is relative to the selected recording indices.
  • Magic run collects visible objects only. Prefer Network(...) when objects are in containers, runs are staged, or train/test snapshots must be exact.
  • A CPU/NumPy smoke does not prove Cython or C++ standalone. Those require a compiler-aware check and, for a standalone claim, an actual temporary build.
  • Keep optional GSL, plotting, notebook, SciPy, Pandas, and multiprocessing capabilities explicit; absence of an optional package is not a core Brian2 import failure.

Shared references

  • Read references/repo-provenance.md before deciding whether this graph matches a checkout or needs refreshing.
  • Read references/troubleshooting.md for cross-cutting installation, import, dependency, cache, and lifecycle triage.
  • Use the bundled smoke scripts in the owning sub-skill only after checking their --help output and selecting a tiny, bounded fixture.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

3ddfa

無料

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

3ddfa-v2

無料

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

ab3dmot

無料

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

acme

無料

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

VectorSpaceLab のスキルをすべて見る

このスキルの問題を報告する