This package shows a set of examples on how the libraries of the brainspy framework (brainspy and brainspy-smg) can be used.
Visit https://github.com/BraiNEdarwin/brains-py/wiki for more information.
The code offered in this package can perform the following tasks:
- Boolean classifier:
- A single boolean gate classifier
- VC-Dimension tests
- Capacity tests for checking the performance on multiple VC-Dimensions
- Ring classifier:
- A particular ring classifier with a given separation gap
- Multiple runs on a ring classifier with a given separation gap
- Capacity tests for checking the performance on multiple separation gaps for several runs
This repository includes a set of jupyter notebooks in brainspy-tasks/notebooks. Make sure you have installed brainspy and brainspy-smg before running them.
You can prepare the code in conda as follows:
conda create -n bspy python==3.9
conda activate bspy
pip install brainspy brainspy-smg
conda install jupyter
cd brainspy-tasks/notebooks
After the installation, remember to get out the environment and back again:
conda deactivate
conda activate bspy
Then, you can run:
jupyter-notebook
-
Checking device functionality: Basic steps on how to characterise a DNPU device and how to find adequate IV curves.
-
Finding functionality on hardware: An example on how to use the genetic algorithm for quickly benchmarking the performance of a single DNPU device directly in hardware.
-
Finding functionality on software: A simple example on how to train a custom model with a single device, for resolving the ring classification task.
-
Advanced examlple on software: A simple example on how to train a custom model to resolve MNIST, using an architecture that is based on LeNet.
This code is released under the GNU GENERAL PUBLIC LICENSE Version 3. Click here to see the full license. The package relies on the following libraries:
- brainspy
- brainspy-smg
- jupyter
- tensorboard
This package has been created and it is maintained by the Brains team of the NanoElectronics research group at the University of Twente. It has been designed and developed by: This package has been created and it is maintained by the Brains team of the NanoElectronics research group at the University of Twente. It has been designed by:
- Dr. Unai Alegre-Ibarra, @ualegre ([email protected]): Project lead, including requirements, design, implementation, maintenance, linting tools, testing and documentation (Jupyter notebooks, Wiki and supervision of file by file documentation).
- Dr. Hans Christian Ruiz-Euler, @hcruiz ([email protected]): Initial design and implementation of major features both in this repository and in the legacy SkyNEt repository and in this one.
With the contribution of:
- Marcus Boon: @Mark-Boon: The on-chip gradient descent. The initial structure for the CDAQ to NiDAQ drivers in the legacy SkyNEt repository.
- Dr. ir. Michel P. de Jong @xX-Michel-Xx ([email protected]): Testing and identification of bugs, especially on the installation procedure.
- Florentina Min Joo Uitzetter: The genetic algorithm as shown in the legacy SkyNEt repository.
- Antonio J. Sousa de Almeida @ajsousal ([email protected]): Checking and upgrading drivers and National Instruments equipment from the labs.
- Bram van de Ven, @bbroo1 ([email protected]) : General improvements and testing of the different hardware drivers and devices and documentation.
- Mohamadreza Zolfagharinejad @mamrez ([email protected]): Writing of some of the examples in Jupyter notebooks (IV curves and surrogate model generation).
Some of the code present in this project has been refactored from the skynet legacy project. The original contributions to the scripts, which are the base of this project, can be found at skynet, and the authorship remains of those people who collaborated in it. Using existing scripts from skynet, a whole new structure has been designed and developed to be used as a general purpose python library.
This project has received financial support from:
- University of Twente
- Dutch Research Council
- HTSM grant no. 16237
- Natuurkunde Projectruimte grant no. 680-91-114
- Horizon Europe research and innovation programme
- Grant no. 101046878
- Toyota Motor Europe N.V.