theanets
The theanets package provides tools for defining and optimizing several common types of neural network models. It uses Python for rapid development, and under the hood Theano provides graph optimization and fast computations on the GPU.
The package defines models for classification, autoencoding, regression, and prediction. Models can easily be created with any number of feedforward or recurrent layers and combined with different regularizers:
L1/L2 weight decay
L1/L2 hidden activation penalties (e.g., sparse autoencoders)
Dropout/gaussian noise (e.g., denoising autoencoders)
Several optimization algorithms are also included:
Many algorithms from scipy.optimize.minimize
Greedy layerwise pre-training
At present there are no RBMs, convolutions, or maxout in theanets – for those, you might want to look at Morb, Lasagne, or pylearn2. There are many other neural networks toolkits out there as well, in many other languages; see this stackoverflow question for a few additional pointers, or just search for them.
Installation
Install the latest published code using pip:
pip install theanets
Or download the current source and run it from there:
git clone http://github.com/lmjohns3/theanets cd theanets python setup.py develop
Example
Let’s say you wanted to create a classifier and train it on some 100-dimensional data points that you’ve classified into 10 categories. You can define your model and train it using a few lines of code:
import climate
import theanets
import my_data_set
climate.enable_default_logging()
exp = theanets.Experiment(
theanets.Classifier,
layers=(100, 200, 100, 10),
hidden_l1=0.1,
)
exp.train(
my_data_set.training_data,
my_data_set.validation_data,
optimize='sgd',
learning_rate=0.01,
momentum=0.5,
)
exp.network.predict(my_data_set.test_data)
The trained network lets you make predictions on unseen test data.
More Information
Source: https://github.com/lmjohns3/theanets
Documentation: http://theanets.readthedocs.org
Mailing list: https://groups.google.com/forum/#!forum/theanets
Metadata
Release files for theanets 0.5.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 | Provenance | |
|---|---|---|---|---|
| theanets-0.5.1.tar.gz | 41.4 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| theanets-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
| theanets-0.5.1-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 134.6 kB
Release files / theanets-0.5.1.tar.gz
| Download URL | theanets-0.5.1.tar.gz |
|---|---|
| Size | 41.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27ae48df856904e5a0a49c27f4ea10264aa3046c30d450f275c44bd50b5a343f
|
|
BLAKE2b-256 checksum How to use checksums |
304bdec362812fbae37df210261c409fef24d677f7ec1915bebfa0f3775bff98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / theanets-0.5.1-py3-none-any.whl
| Download URL | theanets-0.5.1-py3-none-any.whl |
|---|---|
| Size | 46.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b16f790d73e891aab6151b2cddd638fdd288507e49da406d665cb7ff1cdce6f
|
|
BLAKE2b-256 checksum How to use checksums |
e8a3c4eb93be96031315963ab55b935bc455a9ff759d202b48b49aee214025d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / theanets-0.5.1-py2-none-any.whl
| Download URL | theanets-0.5.1-py2-none-any.whl |
|---|---|
| Size | 46.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
2ad6ab0916a1594fc947555236fd54dfc2b57a6a6fa0d3134d3f39670f1e32f0
|
|
BLAKE2b-256 checksum How to use checksums |
aed85a829f25a4758b99c562165969ded5b5c220104cd367d7b7ea031ac15e04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for theanets 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.