Giter VIP home page Giter VIP logo

exercise5's Introduction

Review Assignment Due Date

Exercise 5

This exercise contains three tasks: (1) Implement the data preprocessing and the forward pass of the language model, (2) train an LM on a small dataset and compare character vs word-level tokens, and (3) train an LM on a larger dataset comparing different batch sizes.

Instructions

Accept the assignment in GitHub classrooms (link on exercise sheet and slides). Clone the repository to your local machine. All code completion tasks are required with a TODO-tag inside the code.

For task 1, commit your code to the repository. For task 2 and 3, commit the directory runs with the 4 runs that should be completed.

Please consult the exercise sheet for further details.

Hyperparameters

For task 2 and 3, we expect you to provide 2 runs each -- keep all parameters which do not need to be modified at the default value.

You can run the training using the following code snippets:

from config import Configuration
from train import do_run

username = "someuser"  # TODO: specify your github username here so every students runs are unique

do_run(Configuration.generate(
    username=username, dataset="equations", character_level=False,
))

do_run(Configuration.generate(
    username=username, dataset="equations", character_level=True,
))

do_run(Configuration.generate(
    username=username, dataset="motivational_quotes", minibatch_size=4,
))

do_run(Configuration.generate(
    username=username, dataset="motivational_quotes", minibatch_size=32,
))

exercise5's People

Watchers

Lukas Scholz 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.