Skip to main content
orphan:

scikit-neuralnetwork

Deep neural network implementation without the learning cliff! This library implements multi-layer perceptrons as a wrapper for the powerful pylearn2 library that’s compatible with scikit-learn for a more user-friendly and Pythonic interface.

NOTE: This project is possible thanks to the nucl.ai Conference on July 20-22. Join us in Vienna!

Documentation Status Code Coverage License Type Project Stars


Features

Thanks to the underlying pylearn2 implementation, this library supports the following neural network features, which are exposed in an intuitive and well documented API:

  • Activation Functions —
    • Nonlinear: Sigmoid, Tanh, Rectifier, Maxout.

    • Linear: Linear, Gaussian, Softmax.

  • Layer Types — Convolution (greyscale and color, 2D), Dense (standard, 1D).

  • Learning Rules — sgd, momentum, nesterov, adadelta, adagrad, rmsprop.

  • Regularization — L1, L2 and dropout.

  • Dataset Formats — numpy.ndarray, scipy.sparse, coming soon: iterators.

If a feature you need is missing, consider opening a GitHub Issue with a detailed explanation about the use case and we’ll see what we can do.

Installation

To download and setup the latest official release, you can do so from PYPI directly:

> pip install scikit-neuralnetwork

This contains its own packaged version of pylearn2 from the date of the release (and tag) but will use any globally installed version if available.

Then, you can run the tests using nosetests -v sknn, and other samples or benchmarks are available in the examples/ folder.

Getting Started

The library supports both regressors (to estimate continuous outputs from inputs) and classifiers (to predict labels from features). This is the sklearn-compatible API:

from sknn.mlp import Classifier, Layer

nn = Classifier(
    layers=[
        Layer("Rectifier", units=100),
        Layer("Linear")],
    learning_rate=0.02,
    n_iter=10)
nn.fit(X_train, y_train)

y_valid = nn.predict(X_valid)

score = nn.score(X_test, y_test)

The generated documentation as a standalone page where you can find more information about parameters, as well as examples in the User Guide.


Documentation Status Code Coverage License Type Project Stars

Release files for scikit-neuralnetwork 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scikit-neuralnetwork 0.4
File Size Uploaded
scikit-neuralnetwork-0.4.tar.gz 716.9 kB Details

Release files / scikit-neuralnetwork-0.4.tar.gz

Download URL scikit-neuralnetwork-0.4.tar.gz
Size 716.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bd7cc617458bbca285185390e12f99d270ac73d9134b6385ea49666b8c886530
BLAKE2b-256 checksum
How to use checksums
10eefa80ff86e902a0480b4151d1ffc9a88755b4d712c32ffe86705678f065ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.7

1 release file

0.6.1

1 release file

0.6

1 release file

0.5

1 release file

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page