Keras inspired pure python neural network library
Project description
txnet
Keras inspired pure python neural network library
from txnet.models import Sequential
from txnet.layers import Dense, ReLU, Sigmoid
import numpy as np
x = np.array([
[1, 1],
[0, 1],
[1, 0],
[0, 0]
])
y = np.array([[0], [1], [1], [0]])
model = Sequential()
model.add(Dense(2, 5, 0.01))
model.add(ReLU())
model.add(Dense(5, 1, 0.01))
model.add(Sigmoid())
model.fit(x, y, 10000)
print(model.predict(x))
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
txnet-0.1.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
txnet-0.1-py3-none-any.whl
(2.5 kB
view details)
File details
Details for the file txnet-0.1.tar.gz.
File metadata
- Download URL: txnet-0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61018570648214d656bdcff7932aa2dfdf9772b3d1d755d2da0c617082b35efa
|
|
| MD5 |
57ea5d7a6b0eca36d9d3be07ae2b1531
|
|
| BLAKE2b-256 |
9e0536a0e190d970eee2fed721dd60cb933b382a12a843185428b53a4ae94bba
|
File details
Details for the file txnet-0.1-py3-none-any.whl.
File metadata
- Download URL: txnet-0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f50773df28c4c82ac07aec899a8f2dfdbc049a15f5f162168cc81ff070bb3aa
|
|
| MD5 |
f6231a84a08b03a56abcd1cc1b22fe6f
|
|
| BLAKE2b-256 |
21a2e5cb2cc3185216c12727c8e0b3bf990cde69fdbccf32ab284a521f13393b
|