Code Monkey home page Code Monkey logo

integer_sequence_learning's Introduction

Integer Sequence Learning

Integer Sequence Learning is one of the Kaggle competitions. Basically, you are to guess right the last number of integer sequences. The competition already ended a few months ago, but we challenge it for fun. Luckily, it's possible to check the score after the deadline.

We apply recurrent neural networks to this task. (Why not?) This task particularly interests us as it's analogous to word prediction. That is, a number and its composing digits are equivalent to a word and characters. Based on this observation, we conduct two experiments. In the first one, we try to predict the last number based on the preceding numbers. In another one, we sequentially generate a digit based on the preceding digits.

Requirements

numpy >= 1.11.1
keras >= 1.2.1

Task Overview

Check this for detailed description of the task.

Model Architecture / Hyper-parameters

  • Training
    • Inputs -> GRU Layer 1 of 1000 hidden units -> Dropout -> GRU Layer 2 of 1000 hidden units -> Dropout -> Time distributed dense -> Outputs
  • Inference
    • Inputs -> GRU Layer 1 of 1000 hidden units -> GRU Layer 2 of 1000 hidden units -> Dense -> Outputs

Work Flow

  • STEP 1. Download raw training data and test data and extract them to data/ folder.
  • STEP 2. Run exp1/prepro.py to make train/val/test data.
  • STEP 3. Run exp1/train.py.
  • STEP 4. Run exp1/submit.py to get the final prediction results.
  • STEP 5. Run exp2/prepro.py to make train/val/test data.
  • STEP 6. Run exp2/train.py.
  • STEP 7. Run exp2/submit.py to get the final prediction results.
  • STEP 8. Run ensemble.py to mix the results of exp1 and exp2.

if you want to use the pretrained model,

Results

Model Type Score
Exp1 0.13477
Exp2 0.14557
Ensemble 0.15547

integer_sequence_learning's People

Contributors

kyubyong 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.