Giter Club home page Giter Club logo

ift6269-final-project's Introduction

IFT6269-Final-Project

To train:

> python char-rnn.pytorch/train.py --train_set data/train.txt --valid_set data/valid.txt --model lstm --cuda

To generate text (use —-cpu to use the GPU-trained model on a CPU):

> cd char-rnn.pytorch
> python generate.py all_tex_files.pt  -t 0.9 -l 500 --prime_str “The model " --cpu

The weights are saved as gru_epoch1_nlayers3_input100_output100_hs200_trainL20.3_valL30.2.pt, where

  • gru is the model type (can also be lstm)
  • epoch is the final epoch (i.e. max_epoch or when validation bpc started to augment)
  • nlayers is the number of layers
  • input is the input size
  • output is the output size
  • hs is the size of the hidden layers
  • trainL is the loss on the train set
  • valL is the loss on the validation set

It's an ugly but descriptive name.

ift6269-final-project's People

Contributors

alejandroposada avatar mattscicluna avatar viveshok avatar

Watchers

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