Comments (8)
这是我试着写的,希望能帮到你https://github.com/pcgreat/insuranceQA-cnn-lstm/tree/master/lstm_cnn/tensorflow
from qa-deep-learning.
tf版本的lstm+cnn的代码,怎么还是cnn的代码啊?@ pcgreat
from qa-deep-learning.
@chenzhi1992 抱歉,上传代码的时候弄错了,现在更正了
from qa-deep-learning.
from qa-deep-learning.
你的lstm+cnn 大概训练多少step后loss收敛?我训练到1000step,acc一直在0.1到0.2之间.@pcgreat
@ pcgreat
from qa-deep-learning.
from qa-deep-learning.
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.
cnn/tensorflow/insqa_train 中,模型评估的方法dev_step()中,实际上只评估了20条数据吧。
为什么不是直接所有答案的向量计算出来,,然后对于新的问题,计算向量,匹配所有答案向量,得到最佳答案,跟真实的答案比较得到准确率呢??
现在这样写有什么好处??
from qa-deep-learning.
Related Issues (20)
- 你好,最近在学QA,想要一下你的数据,可以吗?
- 你好,请问这个支持中文问答吗?谢谢! HOT 1
- 论文
- tf版本的lstm+cnn
- 有人把这个代码改成中文QA的吗 求交流 HOT 10
- FileNotFoundError: [Errno 2] No such file or directory: '/export/jw/cnn/insuranceQA/train' HOT 1
- TypeError: ('An update must have the same type as the original shared variable HOT 1
- TypeError: Expected int32, got list containing Tensors of type '_Message' instead. HOT 2
- Share full or more data HOT 6
- 如何预测 HOT 9
- 感觉代码中并没有使用到word2vec训练的vectors.nobin中的权重来初始化网络参数? HOT 3
- 模型问题
- 跑出来结果怎么样? HOT 1
- 关于InsuranceQA训练语料转,负样本采样 HOT 7
- train采样 HOT 1
- new model HOT 5
- 请问样本数据在哪能看到 HOT 2
- 复现结果较低 HOT 7
- RNN attention里面好像没有attention啊。。。
- config文件里用到的w2v.bin文件是从哪里得到的 HOT 4
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 qa-deep-learning.