Git Product home page Git Product logo

Comments (8)

pcgreat avatar pcgreat commented on August 24, 2024

这是我试着写的,希望能帮到你https://github.com/pcgreat/insuranceQA-cnn-lstm/tree/master/lstm_cnn/tensorflow

from qa-deep-learning.

chenzhi1992 avatar chenzhi1992 commented on August 24, 2024

tf版本的lstm+cnn的代码,怎么还是cnn的代码啊?@ pcgreat

from qa-deep-learning.

pcgreat avatar pcgreat commented on August 24, 2024

@chenzhi1992 抱歉,上传代码的时候弄错了,现在更正了

from qa-deep-learning.

chenzhi1992 avatar chenzhi1992 commented on August 24, 2024

from qa-deep-learning.

chenzhi1992 avatar chenzhi1992 commented on August 24, 2024

你的lstm+cnn 大概训练多少step后loss收敛?我训练到1000step,acc一直在0.1到0.2之间.@pcgreat
@ pcgreat

from qa-deep-learning.

pcgreat avatar pcgreat commented on August 24, 2024

from qa-deep-learning.

zifengwen avatar zifengwen commented on August 24, 2024

cnn/tensorflow/insqa_cnn 中:
with tf.name_scope("accuracy"):
self.correct = tf.equal(zero, self.losses)
self.accuracy = tf.reduce_mean(tf.cast(self.correct, "float"), name="accuracy")
这几行不足以评估模型的好坏吧,只是统计训练数据中“一个正确答案跟一个错误答案”选对正确答案的比例。。

from qa-deep-learning.

zifengwen avatar zifengwen commented on August 24, 2024

cnn/tensorflow/insqa_train 中,模型评估的方法dev_step()中,实际上只评估了20条数据吧。
为什么不是直接所有答案的向量计算出来,,然后对于新的问题,计算向量,匹配所有答案向量,得到最佳答案,跟真实的答案比较得到准确率呢??
现在这样写有什么好处??

from qa-deep-learning.

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.