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-0.1.0.zip
(10.4 kB
view details)
conx-0.1.0.tar.gz
(6.6 kB
view details)
Built Distribution
conx-0.1.0-py3-none-any.whl
(9.5 kB
view details)
File details
Details for the file conx-0.1.0.zip
.
File metadata
- Download URL: conx-0.1.0.zip
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98fbf7368d234dc22bfa3a43d8fb8307c1b7b6943ca9641226738ebff2279058 |
|
MD5 | c17d63f25fb5d88a1d9e4dc077ca92cb |
|
BLAKE2b-256 | 96f69f8fa656eac8ac5a35aa1e93e5068d6e379a74b2e72d3b51f4b0086f26c5 |
File details
Details for the file conx-0.1.0.tar.gz
.
File metadata
- Download URL: conx-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82b230dae2f2dd2a1fd469dc75651ea8b77c61ae2520c0becf8323b4c8bf7a30 |
|
MD5 | c6057ed2898070975984603bc0177e68 |
|
BLAKE2b-256 | 0cebbdd533a68e3d0bc11fc396a0b76f6199339da00529712c4c08a17d058ed2 |
File details
Details for the file conx-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: conx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 869e836afb7ebb8fc958693e203f4e6c3c17cf6cac9c0be62eee9e985933d10f |
|
MD5 | df8ec6cb68d8e46fb4b5d6103e5f7e28 |
|
BLAKE2b-256 | 5be31ccf73b4aa08e5d2ebe8e2381d073b547febb5598af1bd2cb855a00fccfa |