GithubHelp home page GithubHelp logo

rpersie / eunn-tensorflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jingli9111/eunn-tensorflow

0.0 3.0 0.0 55 KB

Efficient Unitary Neural Network(EUNN) implementation in tensorflow

License: Other

Python 99.88% Shell 0.12%

eunn-tensorflow's Introduction

EUNN-tensorflow

Unitary neural network is able to solve gradient vanishing and gradient explosion problem and help learning long term dependency. EUNN is an efficient and strictly enforced unitary parametrization based on SU(2) group. This repository contains the implementation of Efficient Unitary Neural Network(EUNN) in tensorflow.

If you find this work useful, please cite arXiv:1612.05231. The current implementation is developed by Ivan Ivanov.

Installation

requires TensorFlow 1.2.0

Demo

./demo.sh

Usage

Use EUNN in RNN

To use EUNN in your model, simply copy EUNN.py. You don't need to install or write C code.

Then you can use EUNN in the same way you use built-in LSTM:

from EUNN import EUNNCell
cell = EUNNCell(n_hidden, capacity=2, fft=False, comp=True)

Args:

  • n_hidden: Integer.
  • capacity: Optional. Integer. Only works for tunable style.
  • fft: Optional. Bool. If True, EUNN is set to FFT style. Default is False.
  • comp: Optional. Bool. If True, EUNN is set to complex domain. Default is True.

Note:

  • For complex domain, the data type should be tf.complex64
  • For real domain, the data type should be tf.float32

Example tasks for EUNN

Two tasks for RNN in the paper are shown here. Use -h for more information

Copying Memory Task

python copying_task.py EUNN -T 200

Pixel-Permuted MNIST Task

python mnist_task.py EUNN -I 20000 -H 512 -C False 

eunn-tensorflow's People

Contributors

vanjo9800 avatar jingli9111 avatar

Watchers

James Cloos avatar Rpersie avatar paper2code - bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.