Brain-py

Latest version: v2.1.20

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 6

1.1.4

=============

**API changes:**

- add ``.struct_run()`` in DynamicalSystem
- add ``numpy_array()`` conversion in `brainpy.math.utils` module
- add ``Adagrad``, ``Adadelta``, ``RMSProp`` optimizers
- remove `setting` methods in `brainpy.math.jax` module
- remove import jax in `brainpy.__init__.py` and enable jax setting, including

- ``enable_x64()``
- ``set_platform()``
- ``set_host_device_count()``
- enable ``b=None`` as no bias in `brainpy.simulation.layers`
- set `int_` and `float_` as default 32 bits
- remove ``dtype`` setting in Initializer constructor

**Doc changes:**

- add ``optimizer`` in "Math Foundation"
- add ``dynamics training`` docs
- improve others

1.1.3

=============

- fix bugs of JAX parallel API imports
- fix bugs of `post_slice` structure construction
- update docs

1.1.2

=============

- add ``pre2syn`` and ``syn2post`` operators
- add `verbose` and `check` option to ``Base.load_states()``
- fix bugs on JIT DynamicalSystem (numpy backend)

1.1.1

=============

- fix bugs on symbolic analysis: model trajectory
- change `absolute` access in the variable saving and loading to the `relative` access
- add UnexpectedTracerError hints in JAX transformation functions

1.1.0

==========================

This package releases a new version of BrainPy.

Highlights of core changes:

``math`` module
~~~~~~~~~~~~~~~

- support numpy backend
- support JAX backend
- support ``jit``, ``vmap`` and ``pmap`` on class objects on JAX backend
- support ``grad``, ``jacobian``, ``hessian`` on class objects on JAX backend
- support ``make_loop``, ``make_while``, and ``make_cond`` on JAX backend
- support ``jit`` (based on numba) on class objects on numpy backend
- unified numpy-like ndarray operation APIs
- numpy-like random sampling APIs
- FFT functions
- gradient descent optimizers
- activation functions
- loss function
- backend settings


``base`` module
~~~~~~~~~~~~~~~

- ``Base`` for whole Version ecosystem
- ``Function`` to wrap functions
- ``Collector`` and ``TensorCollector`` to collect variables, integrators, nodes and others


``integrators`` module
~~~~~~~~~~~~~~~~~~~~~~

- class integrators for ODE numerical methods
- class integrators for SDE numerical methods

``simulation`` module
~~~~~~~~~~~~~~~~~~~~~

- support modular and composable programming
- support multi-scale modeling
- support large-scale modeling
- support simulation on GPUs
- fix bugs on ``firing_rate()``
- remove ``_i`` in ``update()`` function, replace ``_i`` with ``_dt``,
meaning the dynamic system has the canonic equation form
of :math:`dx/dt = f(x, t, dt)`
- reimplement the ``input_step`` and ``monitor_step`` in a more intuitive way
- support to set `dt` in the single object level (i.e., single instance of DynamicSystem)
- common used DNN layers
- weight initializations
- refine synaptic connections


brainpy 1.0.x
*************

1.0.3

==========================

Fix bugs on

- firing rate measurement
- stability analysis

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.