神经元仿真案例执行脚本汇总#
通过GPU/CPU执行#
神经元模型 |
执行脚本 |
|---|---|
lif |
python3 test.py --neuron lif --use_lyngor 0 --use_legacy 0 --use_gpu 1 --plot 0 |
adex |
python3 test.py --neuron adex --use_lyngor 0 --use_legacy 0 --use_gpu 1 --plot 0 |
izhikevich |
python3 test.py --neuron izhikevich --use_lyngor 0 --use_legacy 0 --use_gpu 1 --plot 0 |
多房室神经元 |
python3 test.py --neuron multicompartment --use_lyngor 0 --use_legacy 0 --use_gpu 1 --plot 0 |
Hodgkin-Huxley |
python3 test.py --neuron hh --use_lyngor 0 --use_legacy 0 --use_gpu 1 --plot 0 |
多簇模型 |
python3 test.py --neuron multicluster --use_lyngor 0 --use_legacy 0 --use_gpu 1 --plot 0 |
通过灵汐类脑计算设备执行#
神经元模型 |
执行脚本 |
|---|---|
lif |
python3 test.py --neuron lif --use_lyngor 1 --use_legacy 0 --use_gpu 0 --plot 0 |
adex |
python3 test.py --neuron adex --use_lyngor 1 --use_legacy 0 --use_gpu 0 --plot 0 |
izhikevich |
python3 test.py --neuron izhikevich --use_lyngor 1 --use_legacy 0 --use_gpu 0 --plot 0 |
多房室神经元 |
python3 test.py --neuron multicompartment --use_lyngor 1 --use_legacy 0 --use_gpu 0 --plot 0 |
Hodgkin-Huxley |
python3 test.py --neuron hh --use_lyngor 1 --use_legacy 0 --use_gpu 0 --plot 0 |
多簇模型 |
python3 test.py --neuron multicluster --use_lyngor 1 --use_legacy 0 --use_gpu 0 --plot 0 |
通过灵汐类脑计算设备执行且使用历史编译生成物#
神经元模型 |
执行脚本 |
|---|---|
lif |
python3 test.py --neuron lif --use_lyngor 1 --use_legacy 1 --use_gpu 0 --plot 0 |
adex |
python3 test.py --neuron adex --use_lyngor 1 --use_legacy 1 --use_gpu 0 --plot 0 |
izhikevich |
python3 test.py --neuron izhikevich --use_lyngor 1 --use_legacy 1 --use_gpu 0 --plot 0 |
多房室神经元 |
python3 test.py --neuron multicompartment --use_lyngor 1 --use_legacy 1 --use_gpu 0 --plot 0 |
Hodgkin-Huxley |
python3 test.py --neuron hh --use_lyngor 1 --use_legacy 1 --use_gpu 0 --plot 0 |
多簇模型 |
python3 test.py --neuron multicluster --use_lyngor 1 --use_legacy 1 --use_gpu 0 --plot 0 |
通过GPU/CPU以及灵汐类脑计算设备执行#
神经元模型 |
执行脚本 |
|---|---|
lif |
python3 test.py --neuron lif --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 0 |
adex |
python3 test.py --neuron adex --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 0 |
izhikevich |
python3 test.py --neuron izhikevich --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 0 |
多房室神经元 |
python3 test.py --neuron multicompartment --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 0 |
Hodgkin-Huxley |
python3 test.py --neuron hh --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 0 |
多簇模型 |
python3 test.py --neuron multicluster --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 0 |
通过GPU/CPU以及灵汐类脑计算设备执行,并进行脉冲统计曲线图的绘制#
神经元模型 |
执行脚本 |
|---|---|
lif |
python3 test.py --neuron lif --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 1 |
adex |
python3 test.py --neuron adex --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 1 |
izhikevich |
python3 test.py --neuron izhikevich --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 1 |
多房室神经元 |
python3 test.py --neuron multicompartment --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 1 |
Hodgkin-Huxley |
python3 test.py --neuron hh --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 1 |
多簇模型 |
python3 test.py --neuron multicluster --use_lyngor 1 --use_legacy 0 --use_gpu 1 --plot 1 |
在使用多簇模型+STDP时,需执行test_stdp.py脚本,具体配置:
执行设备 |
是否画图 |
执行脚本 |
|---|---|---|
灵汐类脑 |
是 |
python3 test_stdp.py --use_lyngor 1 --use_legacy 0 --use_gpu 0 --plot 1 |
GPU/CPU |
是 |
python3 test_stdp.py --use_lyngor 0 --use_legacy 0 --use_gpu 1 --plot 1 |
灵汐类脑 |
否 |
python3 test_stdp.py --use_lyngor 1 --use_legacy 0 --use_gpu 0 --plot 0 |
GPU/CPU |
否 |
python3 test_stdp.py --use_lyngor 0 --use_legacy 0 --use_gpu 1 --plot 0 |