Giter Site home page Giter Site logo

thesis's People

Contributors

jonvet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

thesis's Issues

Suggestions: may be a error exists in model define codes.

Hi, firstly, thanks for your beautiful codes to display InferSent model in tensorflow.
There exists a problem which bothers me.
You use the same cell for forward and backward cell in BiLstm, as follows:

59             cell = tf.contrib.rnn.LSTMCell(self.para.hidden_size)
60             cell = tf.contrib.rnn.DropoutWrapper(cell, input_keep_prob =
61                                                  self.para.keep_prob_dropout)

But I hold the thought that forward cell and backward should be different so that they can learn sentences features independently, as follows:

 63             cell_fw = tf.contrib.rnn.LSTMCell(self.para.hidden_size)
 64             cell_fw = tf.contrib.rnn.DropoutWrapper(cell_fw, input_keep_prob =
 65                                                  self.para.keep_prob_dropout)
 66             cell_bw = tf.contrib.rnn.LSTMCell(self.para.hidden_size)
 67             cell_bw = tf.contrib.rnn.DropoutWrapper(cell_bw, input_keep_prob =
 68                                                  self.para.keep_prob_dropout)
 69             s1_sentences_states, s1_last_state = tf.nn.bidirectional_dynamic_rnn(
 70                 cell_fw, cell_bw,
 71                 inputs = self.s1_embedded,
 72                 sequence_length = self.s1_lengths,
 73                 dtype = tf.float32,
 74                 scope = varscope)

After modified, with 10 epochs, the performance seems little better than before.
Do you agree with me? If not, please tell me why, thanks ^_^

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.