Skip to main content

Multilayer Feed-Forward Neural Network (MuFFNN) models with TensorFlow and scikit-learn

Project description

# Introduction

This project provides multilayer perceptron predictive models, implemented
using [TensorFlow](https://www.tensorflow.org/) and following the
[scikit-learn](http://scikit-learn.org)
[Predictor API](http://scikit-learn.org/stable/developers/contributing.html#apis-of-scikit-learn-objects).

# Installation

Installation with `conda` and `pip` is recommended:

```bash
conda env create -f environment.yml
source activate muffnn
# See comment below about TF_BINARY_URL.
pip install $TF_BINARY_URL
pip install .
```

Google provides TensorFlow pip wheels for different OSs and architectures.
See [this page](https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html#pip-installation)
for more details. For Python 3.5 on 64-bit Linux with no GPU, set
`export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp35-cp35m-linux_x86_64.whl`

For development, a few additional dependencies are needed:

```bash
conda install flake8 pytest nose
```

# Usage

To use the code, import one of the predictor classes and use it as you would
other predictors such as `LogisticRegression`. An example:

```python
from muffnn import MLPClassifier

X, y = load_some_data()

mlp = MLPClassifier()
mlp.fit(X, y)

X_new = load_some_unlabeled_data()
y_pred = mlp.predict(X_new)
```

# Contributing

See `CONTIBUTING.md` for information about contributing to this project.

# License

BSD-3

See `LICENSE.txt` for details.

# Related Tools

* [sklearn.neural_network](http://scikit-learn.org/dev/modules/classes.html#module-sklearn.neural_network)
* [tensorflow.contrib.learn](https://github.com/tensorflow/tensorflow/tree/r0.10/tensorflow/contrib/learn/python/learn)
* [keras.wrappers.scikit_learn](https://keras.io/scikit-learn-api/)

# Contributors

* [Mike Heilman](https://github.com/mheilman/)
* [Walt Askew](https://github.com/waltaskew/)
* [Matt Becker](https://github.com/beckermr/)
* [Bill Lattner](https://github.com/wlattner/)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

muffnn-0.2.0.tar.gz (30.8 kB view details)

Uploaded Source

File details

Details for the file muffnn-0.2.0.tar.gz.

File metadata

  • Download URL: muffnn-0.2.0.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for muffnn-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8acf083c90c4c4c241ff0e5ec53ce1b7206fd2f725ad777aa8198f6a22dfdc9
MD5 37d2fa94836aa295fbfd98755bff8df8
BLAKE2b-256 467b88a42cf05e2a67775ac0b5ad349bdf0a6b5043b8bde9f742b86553c4fa2e

See more details on using hashes here.

Supported by

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