GithubHelp home page GithubHelp logo

Comments (5)

ilblackdragon avatar ilblackdragon commented on August 23, 2024 1

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.

ilblackdragon avatar ilblackdragon commented on August 23, 2024

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.

vinhqdang avatar vinhqdang commented on August 23, 2024

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.

vinhqdang avatar vinhqdang commented on August 23, 2024

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.

terrytangyuan avatar terrytangyuan commented on August 23, 2024

@vinhqdang See #5. You can just change cell_type to lstm.

from skflow.

Related Issues (20)

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.