kaleidophon / greedy-gerbil Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The data set class now also reads in the image features and support the pytorch
Dataset
class. However, I discovered a logical error in how I create the one-hot vectors for all the data sets. I will have to correct this one tomorrow before I can check off that box in the milestone issue.
The training of the RNN model (on branch "rnn") currently suffers does not support batches due to varying question lengths.
Current, the workaround is to load a batch and then iterate inside the batch. Not as efficient, but the padding strategies I tried weren't successful.
The strategy was to basically take the maximum question length in the current batch and pad all questions that are shorter with -1.
Unfortunately, this clashes with the embedding layer since there's no word index -1.
Padding after embedding is also not easily possible since it would require casting the question variable to something mutable and then recasting it as a Variable and the optimizer really doesn't like this.
Pytorch does seem to have a padding routine somewhere, but so far I haven't gotten it to run (and they also don't use it in their seq2seq example).
Anyway, it's running now, but quite slow.
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.