Git Product home page Git Product logo

pytorch-template's Introduction

PyTorch Template - Additions and changes

This repository has been taken from the excellent pytorch template from this repository. The purpose of this repository is to add to this template while revising certain important concepts in DL.

Additional features in the template

Additions made for this template are:

  • Regularization: Previously the config file only defined a single loss and no regularization could be performed. I have added regularization (both l1 and l2) into the config file which can be switched on and off using the state variable. The variable lamba defines the amount of regularization required and can be used as a hyper-parameter.
  • Initialization: Various different initialization methods can now be used. These can include xavier, kaiming or kaiming uniform, to name a few.

Playing with CNN & LSTM architechtures:

I have tested a Bi-LSTM model for the MNIST problem to familiarize myself with the slightly different structure of it. This has also caused a change in the config file, where the initial LSTM parameters are also stored. These are:

  • Number of layers
  • Hidden Layer size
  • Input size
  • Number of classes
  • Sequence length

After defining these for the LSTM mode, we can reshape the input such that it is now - batch size x sequence x input sequence size

pytorch-template's People

Contributors

sunqpark avatar victoresque avatar khornlund avatar abhi-tiw1 avatar borgesa avatar christopherbate avatar kexiii avatar npielawski 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.