Skip to main content

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


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)

Uploaded Source

Built Distribution

synaptogen-0.1.0-py3-none-any.whl (14.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page