Metadata-Version: 2.1
Name: keras-ordered-neurons
Version: 0.3.0
Summary: Unofficial implementation of ON-LSTM
Home-page: https://github.com/CyberZHG/keras-ordered-neurons
Author: CyberZHG
Author-email: CyberZHG@gmail.com
License: Anti 996
Description: # Keras Ordered Neurons LSTM
        
        [![Travis](https://travis-ci.org/CyberZHG/keras-ordered-neurons.svg)](https://travis-ci.org/CyberZHG/keras-ordered-neurons)
        [![Coverage](https://coveralls.io/repos/github/CyberZHG/keras-ordered-neurons/badge.svg?branch=master)](https://coveralls.io/github/CyberZHG/keras-ordered-neurons)
        [![996.ICU](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://996.icu) 
        
        Unofficial implementation of [ON-LSTM](https://openreview.net/pdf?id=B1l6qiR5F7).
        
        ## Install
        
        ```bash
        pip install keras-ordered-neurons
        ```
        
        ## Usage
        
        Same as `LSTM` except that an extra argument `chunk_size` should be given:
        
        ```python
        from keras.models import Sequential
        from keras.layers import Embedding, Bidirectional, Dense
        from keras_ordered_neurons import ONLSTM
        
        model = Sequential()
        model.add(Embedding(input_shape=(None,), input_dim=10, output_dim=100))
        model.add(Bidirectional(ONLSTM(units=50, chunk_size=5)))
        model.add(Dense(units=2, activation='softmax'))
        model.compile(optimizer='adam', loss='sparse_categorical_crossentropy')
        model.summary()
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
