Giter VIP home page Giter VIP logo

lang_models_comparison's Introduction

Comparison of some neural network architectures on small data

Data

Folder /data

I collect several famous russian classic novels (War and peace, Anna Karenina, Crime and punishment etc) in txt and stacked them together.

The corpora is approximetely 18MB.

NN architectures

Folder /models

I tried the most popular RNN architectures: GRU and LSTM with different capacity.

Feature importance

I made simple laguage models, so the quality metric is perplexity.

Results

Model Perplexity Train time
GRU 5772.1 5 min 20s
GRU + dropout 2641.9 5min 56s
LSTM 3915.2 5min 37s
LSTM + dropout 2765.7 6 min 5s
GRU Large + dropout 4275.2 8min 30s

Dropout have improved LM significantly. However, LSTM + dropout performs almost the same as GRU + dropout. Thus, use dropout to achieve better performance, epspecially on a small corpora.

lang_models_comparison's People

Contributors

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