Comments (5)
The examples in the folder are using Gated Recurrent Unit. But if you want to try LSTM you can easily switch line cell = rnn_cell.GRUCell(EMBEDDING_SIZE)
to cell = rnn_cell.BasicLSTMCell(EMBEDDING_SIZE)
or cell = rnn_cell.LSTMCell(EMBEDDING_SIZE)
.
You can see all RNN cells here - https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/rnn_cell.py
You can read about differences and comparison of using different cells in this paper - http://arxiv.org/pdf/1412.3555v1.pdf
from skflow.
Hi,
Hm, there is examples folder here - https://github.com/google/skflow/tree/master/examples with recipes on how to use skflow and it has LSTM for text classification on words and characters. Or you mean something else?
from skflow.
Hi,
As http://colah.github.io/posts/2015-08-Understanding-LSTMs/, I would understand that LSTM is a special form of RNN
In the examples folder, I saw the example on RNN, but I am not sure if it is LSTM or not.
from skflow.
Hi, I think for LSTMCell
we will need at least 1 more argument, I think EMBEDDING_SIZE
is num_units
parameter of LSTMCell
, then the parameter input_size
is missing
from skflow.
@vinhqdang See #5. You can just change cell_type
to lstm.
from skflow.
Related Issues (20)
- Verbose is not considered during the training. HOT 1
- need more models in skflow.models HOT 2
- seq2seq example doesn't work HOT 1
- IndexError: index 20860 is out of bounds for axis 0 with size 18805 HOT 3
- TypeError inside skflow HOT 1
- text_classification.py giving error HOT 2
- skflow and tensorboard HOT 1
- Conditional RBM and distributed computing HOT 1
- can not run two tensorflow program one by one HOT 1
- Exception in the Custom model example HOT 2
- Scikitflow documentation update requested HOT 1
- getting none values not supported error HOT 3
- neural_translation.py showing error HOT 4
- Exception when restore DNN model HOT 1
- Tensor name "hiddenlayer_2/biases" not found in checkpoint files HOT 1
- checkpoint can't be restored... HOT 1
- DNNClassifier init failed HOT 1
- Why hasn't this repo been archived yet?
- Is this project still working? HOT 1
- .travis.yml: The 'sudo' tag is now deprecated in Travis CI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skflow.