https://github.com/awslabs/keras-apache-mxnet

[DEPRECATED] Amazon Deep Learning's Keras with Apache MXNet support

https://github.com/awslabs/keras-apache-mxnet

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    49 of 801 committers (6.1%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.8%) to scientific vocabulary

Keywords

apache-mxnet deep-learning keras keras-mxnet keras-neural-networks keras-tutorials mxnet python

Keywords from Contributors

deep-neural-networks distributed tensors optimizing-compiler autograd reinforcement-learning closember theano jax cython
Last synced: 6 months ago · JSON representation

Repository

[DEPRECATED] Amazon Deep Learning's Keras with Apache MXNet support

Basic Info
Statistics
  • Stars: 289
  • Watchers: 26
  • Forks: 61
  • Open Issues: 49
  • Releases: 0
Archived Fork of keras-team/keras
Topics
apache-mxnet deep-learning keras keras-mxnet keras-neural-networks keras-tutorials mxnet python
Created over 8 years ago · Last pushed about 3 years ago
Metadata Files
Readme Contributing License

README.md

NOTE: MXNet support in Keras is going to be discontinued and v2.2.4.3 is the last release as multi-backend Keras has been discontinued . It is recommended to consider switching to MXNet Gluon. MXNet Gluon is a high level, easy to use and performant deep learning framework that has all the features in Keras-MXNet and more.

Keras: Deep Learning for humans

Keras logo

| ubuntu/python-2.7 | ubuntu/python-3.5 | |---------|---------| | Python3 Build Status | Python2 Build Status |

license

You have just found Keras-MXNet

Keras is a high-level neural networks API, written in Python and capable of running on top of Apache MXNet (incubating), TensorFlow, CNTK, or Theano. It was developed with a focus on enabling fast experimentation. Being able to go from idea to result with the least possible delay is key to doing good research.

Keras-MXNet is the fork of Keras project and adds support for the high-performance, scalable deep learning library MXNet as a backend.

Detailed documentation for the MXNet backend are provided in the docs/mxnet_backend folder.

Use Keras if you need a deep learning library that:

  • Allows for easy and fast prototyping (through user friendliness, modularity, and extensibility).
  • Supports both convolutional networks and recurrent networks, as well as combinations of the two.
  • Runs seamlessly on CPU and GPU.

Read the documentation at Keras.io.

Keras is compatible with: Python 2.7-3.6.


Guiding principles

  • User friendliness. Keras is an API designed for human beings, not machines. It puts user experience front and center. Keras follows best practices for reducing cognitive load: it offers consistent & simple APIs, it minimizes the number of user actions required for common use cases, and it provides clear and actionable feedback upon user error.

  • Modularity. A model is understood as a sequence or a graph of standalone, fully-configurable modules that can be plugged together with as few restrictions as possible. In particular, neural layers, cost functions, optimizers, initialization schemes, activation functions, regularization schemes are all standalone modules that you can combine to create new models.

  • Easy extensibility. New modules are simple to add (as new classes and functions), and existing modules provide ample examples. To be able to easily create new modules allows for total expressiveness, making Keras suitable for advanced research.

  • Work with Python. No separate models configuration files in a declarative format. Models are described in Python code, which is compact, easier to debug, and allows for ease of extensibility.


Getting started: 30 seconds to Keras

The core data structure of Keras is a model, a way to organize layers. The simplest type of model is the Sequential model, a linear stack of layers. For more complex architectures, you should use the Keras functional API, which allows to build arbitrary graphs of layers.

Here is the Sequential model:

```python from keras.models import Sequential

model = Sequential() ```

Stacking layers is as easy as .add():

```python from keras.layers import Dense

model.add(Dense(units=64, activation='relu', input_dim=100)) model.add(Dense(units=10, activation='softmax')) ```

Once your model looks good, configure its learning process with .compile():

python model.compile(loss='categorical_crossentropy', optimizer='sgd', metrics=['accuracy'])

If you need to, you can further configure your optimizer. A core principle of Keras is to make things reasonably simple, while allowing the user to be fully in control when they need to (the ultimate control being the easy extensibility of the source code). python model.compile(loss=keras.losses.categorical_crossentropy, optimizer=keras.optimizers.SGD(lr=0.01, momentum=0.9, nesterov=True))

You can now iterate on your training data in batches:

```python

xtrain and ytrain are Numpy arrays --just like in the Scikit-Learn API.

model.fit(xtrain, ytrain, epochs=5, batch_size=32) ```

Alternatively, you can feed batches to your model manually:

python model.train_on_batch(x_batch, y_batch)

Evaluate your performance in one line:

python loss_and_metrics = model.evaluate(x_test, y_test, batch_size=128)

Or generate predictions on new data:

python classes = model.predict(x_test, batch_size=128)

Building a question answering system, an image classification model, a Neural Turing Machine, or any other model is just as fast. The ideas behind deep learning are simple, so why should their implementation be painful?

For a more in-depth tutorial about Keras, you can check out:

In the examples folder of the repository, you will find more advanced models: question-answering with memory networks, text generation with stacked LSTMs, etc.


Installation

Before installing Keras, please install one of its backend engines: MXNet, TensorFlow, Theano, or CNTK. We recommend the MXNet backend.

You may also consider installing the following optional dependencies:

Then, you can install Keras itself. There are two ways to install Keras:

  • Install Keras from PyPI (recommended):

sh sudo pip install keras-mxnet

If you are using a virtualenv, you may want to avoid using sudo:

sh pip install keras-mxnet

  • Alternatively: install Keras from the GitHub source:

First, clone Keras using git:

sh git clone https://github.com/awslabs/keras-apache-mxnet.git

Then, cd to the keras-apache-mxnet folder and run the install command: sh cd keras sudo python setup.py install


Configuring your Keras backend

By default, Keras-MXNet will use MXNet as its tensor manipulation library. Follow these instructions to configure the Keras backend.


Support

You can ask Keras-MXNet specific questions or post bug reports and feature requests in GitHub issues.

You can ask Keras questions and join the development discussion:

You can also post bug reports and feature requests (only) in GitHub issues. Make sure to read our guidelines first.


Why this name, Keras?

Keras (κέρας) means horn in Greek. It is a reference to a literary image from ancient Greek and Latin literature, first found in the Odyssey, where dream spirits (Oneiroi, singular Oneiros) are divided between those who deceive men with false visions, who arrive to Earth through a gate of ivory, and those who announce a future that will come to pass, who arrive through a gate of horn. It's a play on the words κέρας (horn) / κραίνω (fulfill), and ἐλέφας (ivory) / ἐλεφαίρομαι (deceive).

Keras was initially developed as part of the research effort of project ONEIROS (Open-ended Neuro-Electronic Intelligent Robot Operating System).

"Oneiroi are beyond our unravelling --who can be sure what tale they tell? Not all that men look for comes to pass. Two gates there are that give passage to fleeting Oneiroi; one is made of horn, one of ivory. The Oneiroi that pass through sawn ivory are deceitful, bearing a message that will not be fulfilled; those that come out through polished horn have truth behind them, to be accomplished for men who see them." Homer, Odyssey 19. 562 ff (Shewring translation).


Owner

  • Name: Amazon Web Services - Labs
  • Login: awslabs
  • Kind: organization
  • Location: Seattle, WA

AWS Labs

GitHub Events

Total
Last Year

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 4,212
  • Total Committers: 801
  • Avg Commits per committer: 5.258
  • Development Distribution Score (DDS): 0.622
Top Committers
Name Email Commits
Francois Chollet f****t@g****m 1,593
Fariz Rahman f****u@g****m 199
Taehoon Lee me@t****m 121
Oleg Zabluda o****a@g****m 107
Gabriel de Marmiesse g****e@g****m 59
Thomas McColgan t****n@g****m 57
Xavier Snelgrove x****r@w****m 49
Lai Wei r****i@g****m 41
EderSantana e****r@m****m 40
Max Pumperla m****a@g****m 40
Michael Oliver m****r@g****m 36
nzw k****w@k****p 35
Frédéric Branchaud-Charron f****n@u****a 34
Makoto Matsuyama m****a@g****m 28
Philipp s****l@g****m 26
Andrew Hundt A****t@g****m 24
Yu-Yang Huang m****0@u****m 24
Max Pumperla m****a@n****u 22
Joao Felipe Santos j****l@g****m 22
Yanbo Liang y****8@g****m 21
Kalyanee Chendke k****e@h****m 18
Gijs van Tulder g****r@u****m 17
Leon Chen l****3@g****m 17
tboquet t****t@h****a 16
Tennessee Leeuwenburg t****g@g****m 15
Sandeep Krishnamurthy s****8@g****m 15
Carl Thomé c****e@g****m 15
Abhai Kollara Dilip a****p@g****m 14
fuzzythecat f****7@g****m 14
Daniel Høyer Iversen m****l@d****t 13
and 771 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 51
  • Total pull requests: 49
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 22 days
  • Total issue authors: 28
  • Total pull request authors: 9
  • Average comments per issue: 1.37
  • Average comments per pull request: 0.98
  • Merged pull requests: 42
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • roywei (12)
  • sandeep-krishnamurthy (7)
  • iamthebot (2)
  • maybeLee (2)
  • ssbusc1 (2)
  • sdbonte (2)
  • kalyc (2)
  • Justobe (2)
  • efournie (1)
  • wiwatarm (1)
  • harryprince (1)
  • Cpruce (1)
  • jackgle (1)
  • karan6181 (1)
  • 4sfaloth (1)
Pull Request Authors
  • roywei (24)
  • kalyc (14)
  • pjelement (3)
  • karan6181 (3)
  • yashsaboo (1)
  • sandeep-krishnamurthy (1)
  • harshp8l (1)
  • neel2299 (1)
  • leondgarse (1)
Top Labels
Issue Labels
bug (10) feature request (8) training (7) enhancement (5) CI (4) good first issue (2) help wanted (2) installation (2) Pending Requester Info (2) docs (1) performance (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 8,665 last-month
  • Total docker downloads: 393
  • Total dependent packages: 0
  • Total dependent repositories: 12
  • Total versions: 22
  • Total maintainers: 1
pypi.org: keras-mxnet

Deep Learning for humans. Keras with highly scalable, high performance Apache MXNet backend support.

  • Versions: 22
  • Dependent Packages: 0
  • Dependent Repositories: 12
  • Downloads: 8,665 Last month
  • Docker Downloads: 393
Rankings
Downloads: 0.9%
Docker downloads count: 1.9%
Stargazers count: 3.7%
Dependent repos count: 4.2%
Average: 4.3%
Forks count: 5.3%
Dependent packages count: 10.1%
Maintainers (1)
Last synced: 6 months ago