Code Monkey home page Code Monkey logo

csci6908-a1-pt2's Introduction

The following repository contains the replication package to train an LSTM model for next word generation conditioned on literary genres.

Files and Folder Structure

  • data: contains training, test and validation data in form of pickle files. It also contains vocab dictionary and the genres mapping. They can be downloaded from the following Google Drive folder: https://drive.google.com/drive/folders/1SaBaq1KmAvj9K-4a9vvsdxzp8iOniRYL?usp=sharing
  • logs: Contains Tensorboard logs from my experiment.
  • model2: This package contains the model implementation, data classes and utility functions for I/O operations and training.
  • checkpoint: Contains the model's weights after training.
  • Data_Preparation.ipynb: Jupyter notebook used to generate the data provided in the Google Drive folder.
  • train_attn.py Main script that contains the logging, hyperparemeters values, and training/testing loops.
  • M2Inference.ipynb: Jupyter notebook used for inference (text generation).

Training

(Option) First step is to generate the data files. This an optional step as training files are already provided.
To train the model, execute the the following:

python train_attn.py

csci6908-a1-pt2's People

Contributors

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