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))
Release files for txnet 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 | |
|---|---|---|---|
| txnet-0.1.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| txnet-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.4 kB
Release files / txnet-0.1.tar.gz
| Download URL | txnet-0.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61018570648214d656bdcff7932aa2dfdf9772b3d1d755d2da0c617082b35efa
|
|
BLAKE2b-256 checksum How to use checksums |
9e0536a0e190d970eee2fed721dd60cb933b382a12a843185428b53a4ae94bba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / txnet-0.1-py3-none-any.whl
| Download URL | txnet-0.1-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f50773df28c4c82ac07aec899a8f2dfdbc049a15f5f162168cc81ff070bb3aa
|
|
BLAKE2b-256 checksum How to use checksums |
21a2e5cb2cc3185216c12727c8e0b3bf990cde69fdbccf32ab284a521f13393b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|