Code Monkey home page Code Monkey logo

diagonal_rnns's Introduction

Software requirements:

  • Python v > 3.5
  • Numpy v > 1.12
  • Tensorflow v > 1.0
  • Pandas > v -0.18
  • scikit-learn v > 0.17.1 (for feature extraction in text task)

SYNOPSIS for version 0.1

  • This is the code used in the paper Diagonal RNNs in Symbolic Music Modeling. This code can has regular Vanilla RNN, LSTM, GRU and their diagonal versions. We also have the bi-directional implementations of these models. We have sequence to sequence (suitable for e.g. sequence prediction tasks) and sequence to vector (suitable for e.g. sequence classification)

  • In this version we have support for the following experimental setups:

    1. Sequence prediction on symbolic music datasets downloaded from this link,
    2. Digit classification on the MNIST dataset with bi directional RNNs. We use tensorflow's default MNIST data.
    3. Phoneme classification on the TIMIT dataset. We use the data preparation code for the TIMIT dataset, which save the data in a .pickle file.
    4. The text prediction task will soon be implemented.

Summary of the input and outputs of the code:

  • The specifications for the particular run, including the task, dataset, model, form of the recurrent matrices, the device to run on, initialization, optimizer are given inside the dictionary named 'input_dictionary' as an argument to the main function. The outputs are written in a .npy file after being done with each random hyper-parameter configuration.

  • The input interface is in main.py. The RNN classes and functions are in rnns.py

Loading custom dataset:

  • The function 'load_data()' in rnns.py handles the data loading. The users can customize this function accordingly.

diagonal_rnns's People

Contributors

ycemsubakan avatar

Watchers

 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.