hughperkins / char-lstm Goto Github PK
View Code? Open in Web Editor NEWchar-rnn, tweaked to use Element-Research rnn modules
License: BSD 2-Clause "Simplified" License
char-rnn, tweaked to use Element-Research rnn modules
License: BSD 2-Clause "Simplified" License
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.....
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?
This repo would get more hits if it were renamed char-lstm. IMHO
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.