A fast generative model for stochastic memory cells
Project description
Synaptogen.py
This is a quick translation of Synaptogen into Python.
The code is not highly optimized and is considerably slower than the Julia version.
Installation
pip install synaptogen
Examples
This basic example does the following:
- Initialize a million memory cells (in their high resistance states)
- Apply -2 V to each cell, putting them into their low resistance states
- Apply a random voltage to each cell
- Make a current readout of all the cells (at a default of 0.2 V)
from synaptogen import *
import numpy as np
M = 2**20
cells = CellArrayCPU(M)
applyVoltage(cells, -2)
voltages = np.random.randn(M)
applyVoltage(cells, voltages)
I = Iread(cells)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
synaptogen-0.1.0.tar.gz
(13.6 kB
view hashes)
Built Distribution
synaptogen-0.1.0-py3-none-any.whl
(14.3 kB
view hashes)
Close
Hashes for synaptogen-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccfe1cdb6663c91453a67f94b513e2688d145da9c55395178fa3d78c060671b |
|
MD5 | 5f047e1ea563a011a0fc234ea5f39ce1 |
|
BLAKE2b-256 | 47a0228e51d544235e88f2079ea4e334904f0c0a3cca5303228b628d41f82320 |