Skip to main content

Neural network library on Theano

Project description

# conx

Neural network library in Python built on Theano

Networks implement backpropagation of error algorithm. Networks can have as many hidden layers as you desire.

The network is specified to the constructor by providing sizes. For example, Network(2, 5, 1) specifies a 2-node input layer, 5-unit hidden layer, and a 1-unit output layer.

## Example

Computing XOR via a target function:

```
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 XOR target:

```
from conx import Network
inputs = [[[0, 0], [0]],
[[0, 1], [1]],
[[1, 0], [1]],
[[1, 1], [0]]]
net = Network(2, 2, 1)
net.set_inputs(inputs)
net.train()
net.test()
```

## Install

```python
pip install conx -U
```

## Examples

See the examples folder for additional examples, including handwritten letter recognition of MNIST data.

Project details


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.3.zip (12.6 kB view details)

Uploaded Source

conx-1.0.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

conx-1.0.3-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file conx-1.0.3.zip.

File metadata

  • Download URL: conx-1.0.3.zip
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for conx-1.0.3.zip
Algorithm Hash digest
SHA256 25207eea90d1d0ea47f39d871f0b67a76e5c5bdffdd525324a2e50a4b4f7a88f
MD5 6c40f36e8f711515fb4b4efa1356b159
BLAKE2b-256 a4885f8d647d1ddd0cd54df3ff7efc8e13a2ee9d4cdedfcad9beaa97d3857ff7

See more details on using hashes here.

File details

Details for the file conx-1.0.3.tar.gz.

File metadata

  • Download URL: conx-1.0.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for conx-1.0.3.tar.gz
Algorithm Hash digest
SHA256 571ec8a0192ff98096fa61e701b7aa7714a8ffbb5f78e42cf3f19b33fd328853
MD5 016caf354c73a3de24c57dc2af1aa044
BLAKE2b-256 ac058832523eac56d93ebd8608a4fe73ef81827947173cf6428578e1d7f8cc10

See more details on using hashes here.

File details

Details for the file conx-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for conx-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 13ed86839bf078e1d901c7bba7bc5fad167d7ce19a48b2a786d49a2462d6fd43
MD5 47abcc2d57f46433a14c13ab85bc0d7e
BLAKE2b-256 f4b16df6afda80c577f30f8fb89834b694ed6877290bce627a14bc81a5e84e54

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page