Giter Site home page Giter Site logo

char-lstm's People

Contributors

hughperkins avatar nicholas-leonard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

char-lstm's Issues

Bug in the code structure for Training

Hello,

I used the base code for testing my own code :
Training data : Batch size Tensor of size 50 x 3, where length (row) of sequence is 3 (float value). The LSTM has one input and one output. Example one row of the training batch : torch.Tensor({{0.1},{0.2}{0.3}}).

When passing as a single chunk batch to Sequencer Node (net) : updateOutput : input:size() is used as length of sequence which should be 3 but in my case return 50, which is wrong. Hence instead of passing a batch , single row of batch if passed works as per the logic and LSTM node is called 3 times (time step) instead of 50 times..,, This could be a problem in your code as well else Sequencer.lua logic need to handle batch 2D tensors.

Please suggest if I am wrong in understanding.....

Organization

Nice job on this. I am watching in hopes it will be easier to plug in bidirectional lstm's and some of the other options with ER. Why not move out the data loading functions to separate files so there is an option for char / word level batching without having the main file so complex?

char-lstm

This repo would get more hits if it were renamed char-lstm. IMHO

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.