Neural network library on Theano
Project description
# conx
Neural network library in Python built on Theano
Computing a target on the fly:
```
from conx import Network
inputs = [[0, 0],
[0, 1],
[1, 0],
[1, 1]]
def xor(inputs):
a = inputs[0]
b = inputs[1]
return [int((a or b) and not(a and b))]
net = Network(2, 2, 1)
net.set_inputs(inputs)
net.set_target_function(xor)
net.train()
net.test()
```
Given a specified target:
```
from conx import Network
inputs = [[0,0], [0,1], [1,0], [1,1]]
net = Network(2, 2, 1)
net.set_inputs(inputs)
net.train()
net.test()
```
Neural network library in Python built on Theano
Computing a target on the fly:
```
from conx import Network
inputs = [[0, 0],
[0, 1],
[1, 0],
[1, 1]]
def xor(inputs):
a = inputs[0]
b = inputs[1]
return [int((a or b) and not(a and b))]
net = Network(2, 2, 1)
net.set_inputs(inputs)
net.set_target_function(xor)
net.train()
net.test()
```
Given a specified target:
```
from conx import Network
inputs = [[0,0], [0,1], [1,0], [1,1]]
net = Network(2, 2, 1)
net.set_inputs(inputs)
net.train()
net.test()
```
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 Distributions
conx-1.0.0.zip
(11.6 kB
view details)
conx-1.0.0.tar.gz
(7.6 kB
view details)
Built Distribution
conx-1.0.0-py3-none-any.whl
(10.6 kB
view details)
File details
Details for the file conx-1.0.0.zip
.
File metadata
- Download URL: conx-1.0.0.zip
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4429694e415b83e661462a81e7588af2f41eaadbcc80533dae839481a1c1fb3 |
|
MD5 | ea8dfcf2e4cf87c9579078b23f619b05 |
|
BLAKE2b-256 | 0ade2860b3b86f144722fa382af5d914dc06acfde675cfe38424be165ffe37a9 |
File details
Details for the file conx-1.0.0.tar.gz
.
File metadata
- Download URL: conx-1.0.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c1371a700e2dd689a6108262847228275afb5659d803a9f1ff33729064e1367 |
|
MD5 | 2faa137fa3a4df7651f62d55632aa755 |
|
BLAKE2b-256 | ae3ed468edfc4db6caa767a5f62b2651d1cd0be6d065913f19c57c2d3b65c0cb |
File details
Details for the file conx-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: conx-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f3a12c2b316229b1c4288b2bf389f0efba31973e551319cd88f19916d89aa6 |
|
MD5 | bd5134a8f528726d8991a892be3bd559 |
|
BLAKE2b-256 | cf9384c30dcad1fb773f4347ce28cf1ad9cb78e6fd127818e9bd8609dc740475 |