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.1.zip
(11.6 kB
view details)
conx-1.0.1.tar.gz
(7.6 kB
view details)
Built Distribution
conx-1.0.1-py3-none-any.whl
(10.6 kB
view details)
File details
Details for the file conx-1.0.1.zip
.
File metadata
- Download URL: conx-1.0.1.zip
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 491a9ec3bd2c2ee61ff47ba030dd15f657dcb5036df37f3559381d0eb8bab1f0 |
|
MD5 | 5f28c16faaa618c485c9dd9fff685a23 |
|
BLAKE2b-256 | 82a00643db7b23cb84dd48ce5fa3c504e85ea7143fde6e6a174efc6791305b86 |
File details
Details for the file conx-1.0.1.tar.gz
.
File metadata
- Download URL: conx-1.0.1.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf9e4ca5afeb8c75af81dead8965174af70a08b74dda57c69222221c7d01df23 |
|
MD5 | a5fcaaac1385dc8c27b6ca60a08aeaf0 |
|
BLAKE2b-256 | 9c78e283fe1093341f5100272c884738bcdf65c4818db9aab0bd68fc6c510aea |
File details
Details for the file conx-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: conx-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7d962b0981d9b556e538b007062578cafcba0cc0c1c5c17f3041589f11c7754 |
|
MD5 | 672d56fc6475fa86167a51801b593548 |
|
BLAKE2b-256 | 89c40dfe144fedbdfdaaa37ae9a0db9b3e0ab7f60286dcd345af3971c7f9a33c |