Overview
Random Neural Network Simulator implemented in Python.
Setup
Requirements
- Python 3.6+
- NumPy
- Sklearn
Installation
Install this library directly into an activated virtual environment:
$ pip install rnnsim
or add it to your Poetry project:
$ poetry add rnnsim
Usage
After installation, the package can either be used as:
from rnnsim.model import SequentialRNN
sequential_model = SequentialRNN([2, 2, 1])
sequential_model.compile()
sequential_model.fit(train_data=(X_train, y_train), epochs=50, metrics="acc")
print(sequential_model.score((X_test, y_test)))
or
from rnnsim.RNN import RNN
# define model connections
conn_plus = {
1: [3, 4], 2: [3, 4],
3: [5], 4: [5], 5: []}
conn_minus = {
1: [3, 4], 2: [3, 4],
3: [5], 4: [5], 5: []}
model = RNN(n_total=5, input_neurons=2, output_neurons=1, conn_plus=conn_plus, conn_minus=conn_minus)
model.fit(epochs=N_Iterations, train_data=(X, Y))
References
- E. Gelenbe, Random neural networks with negative and positive signals and product form solution," Neural Computation, vol. 1, no. 4, pp. 502-511, 1989.
- E. Gelenbe, Stability of the random neural network model," Neural Computation, vol. 2, no. 2, pp. 239-247, 1990.
Metadata
Release files for rnnsim 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rnnsim-0.1.tar.gz | 7.2 kB | Without provenance | Details for rnnsim-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rnnsim-0.1-py3-none-any.whl | Python 3 | none | any | Details for rnnsim-0.1-py3-none-any.whl |
Total release size: 14.9 kB
Release files / rnnsim-0.1.tar.gz
| Download URL | rnnsim-0.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a39263686c8c72e1129536af121f9d7b3fb98f6de7adc7446e605271b051e817
|
|
BLAKE2b-256 checksum How to use checksums |
d7c16ccd1bdde27b2e63ee4f5167ac00f2297bb37c63f479980ff6603a416d9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.6.9 Linux/5.0.0-25-generic
|
Release files / rnnsim-0.1-py3-none-any.whl
| Download URL | rnnsim-0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7cf0cc53cd4c89d28f0ec6e18df5d5b08b466994ddf1e22adc8db91b73c632a2
|
|
BLAKE2b-256 checksum How to use checksums |
8951484fd628ae76350f555648c1d27e4b329f55f93815e28f44530d008276cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.6.9 Linux/5.0.0-25-generic
|
Security for rnnsim 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.