معرفی شرکت ها


brainpy-largescale-0.1.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

brainpy-largescale depends on brainpy
ویژگی مقدار
سیستم عامل -
نام فایل brainpy-largescale-0.1.2
نام brainpy-largescale
نسخه کتابخانه 0.1.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده NanHu Neuromorphic Computing Laboratory Team
ایمیل نویسنده nhnao@cnaeit.com
آدرس صفحه اصلی https://github.com/NH-NCL/brainpy-largescale
آدرس اینترنتی https://pypi.org/project/brainpy-largescale/
مجوز Apache-2.0 license
# brainpy-largescale Run [BrainPy](https://github.com/PKU-NIP-Lab/BrainPy) in multiple processes. brainpy-largescale depends on [BrainPy](https://github.com/PKU-NIP-Lab/BrainPy) and [brainpy-lib](https://github.com/PKU-NIP-Lab/brainpylib), use the following instructions to [install brainpy package](https://brainpy.readthedocs.io/en/latest/quickstart/installation.html). ## Install Only support `Linux` ``` pip install brainpy-largescale ``` ## Import ```python import brainpy as bp import bpl ``` ## Set platform ``` bpl.set_platform('cpu') ``` only support cpu. ## Create population Use Leaky Integrate-and-Fire (LIF) ```python a = bpl.neurons.LIF(300, V_rest=-60., V_th=-50., V_reset=-60., tau=20., tau_ref=5.) b = bpl.neurons.LIF(100, V_rest=-60., V_th=-50., V_reset=-60., tau=20., tau_ref=5.) ``` ## Create synapse ```python d = bpl.synapses.Exponential(a, b, bp.conn.FixedProb(0.4, seed=123), g_max=10, tau=5., delay_step=1) ``` ## Construct network ```python net = bpl.Network(a, b, d) net.build() ``` ## Add input add current input ```python inputs = [bpl.device.Input(a, 20), bpl.device.Input(b, 10)] ``` ## Add spike monitor ```python monitor_spike = bpl.device.Monitor([a, b], bpl.device.MonitorKey.spike) ``` ## Add volt monitor ```python monitor_volt = bpl.device.Monitor([b], bpl.device.MonitorKey.volt) ``` ```python monitors = [monitor_spike, monitor_volt] ``` ## Add spike and volt callback ```python def spike(a: List[Tuple[int, float]]): if a: print(a) def volt(a: List[Tuple[int, float, float]]): # print(a) pass ``` ## Run ```python runner = bpl.runner.DSRunner( net, monitors=monitors, inputs=inputs, jit=False, spike_callback=spike, volt_callback=volt, ) runner.run(10.) ``` ## Visualization ```python import matplotlib.pyplot as plt if 'spike' in runner.mon: bp.visualize.raster_plot(runner.mon.ts, runner.mon['spike'], show=True) ``` ## License<a id="quickstart"></a> [Apache License, Version 2.0](https://github.com/NH-NCL/brainpy-largescale/blob/main/LICENSE)


نیازمندی

مقدار نام
>=1.15 numpy
- tqdm
==2.2.4.0 brainpy
- numba
==3.1.4 mpi4py
==0.3.11 mpi4jax
==0.3.25 jax
==0.3.25 jaxlib
- matplotlib


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl brainpy-largescale-0.1.2:

    pip install brainpy-largescale-0.1.2.whl


نصب پکیج tar.gz brainpy-largescale-0.1.2:

    pip install brainpy-largescale-0.1.2.tar.gz