Git Product home page Git Product logo

highwaynetwork's Introduction

HighwayNetwork

This project is my codes for Highway network using Keras with Theano backend. More information about the model can be found in:

Training very deep network

A Highway network layer is a linear combination of the previous layer and the current activation.

h^t = g * h^t + (1-g) * h^(t-1)

where g is a sigmoid function of h^(t-1).

An interesting point is that the bias of g is initialized with a large negative number. This implies g -> 0. That means in early learning stage, the model prefers linear part, making the learning easier.

There are two versions: Highway networks for vector data and Convolutional Highway networks for spatial data. Highway networks for vector data is already implemented in Keras layers. Convolutional Highway layer is written based on Keras Highway and Convolutional layers. The convolutional highway model used in the paper is in file conv_highway_model.txt

I propose to modify the Highway networks so that the parameters can be shared among layers. This enables the model to learn high level of abstraction of the data while reduces the number of parameters. Parameter sharing in Highway networks may fit with small and medium datasets.

To turn on the option parameter sharing, the scripts highway_training.py and convhighway_training.py can have an option "-shared x", where x = 1 means parameters are shared and x = 0 for the original network.

Experiments show that for mnist dataset, the original model outpeforms the model with parameter sharing while for some vector dataset, parameter sharing version works better (results of miniboo and sensorless datasets).

Experiment logs are in /log/ folder. For mnist dataset, I ran and reported the result after 20 epochs.

highwaynetwork's People

Contributors

trangptm avatar

Watchers

James Cloos 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.