Comments (12)
请问 你之后发生问题了吗,就是将 两个false 修改为true后
TypeError: slice indices must be integers or None or have an index method
是否出现了 这个问题
from chinesener.
main函数最上面配置flags的地方
flags.DEFINE_boolean("train", True, "Wither train the model") 把默认的False改为True再执行main函数才是训练 然后就会自动生成config_file。
这些参数还是得好好看看 作者注释的还挺详细的
from chinesener.
得自己先运行 main.py函数训练一下
from chinesener.
先用main.py函数先训练一下是什么意思?运行main时报错,没有config_file。
from chinesener.
from chinesener.
你这个错误是列表切片的时候下标不是整数导致的 比如说 L是个list L[0:1.5] 就会报错 你看一下错误日志 看看是哪一行 改成类似L[0:int(1.5)] 加个int函数转换一下
from chinesener.
@ShangzhiH 感谢,加了之后 没问题了,请问训练大概进行到什么程度 才会停止呢,nerloss 要变到特别小吗,或者得的分数超过多少分 才会停止迭代
from chinesener.
![tim 20180315190752](https://user-images.githubusercontent.com/31613725/37459832-426ca27c-2884-11e8-8c44-77c0febcdf07.pn
请问测试那块是否写的有点问题,应该不能每次迭代都测试一次吧?
from chinesener.
@git-mengmeng 这个没一定的 最好是在tensorboard里看一下 损失函数下降的趋势 和每个epoch结束的时候训练集 验证集 测试集的准确率 看看是否要提前终止训练 这个项目的代码默认是不到max epoch不停的 不会做early stopping
from chinesener.
@DCdream 图片显示有问题 作者这里是一个epoch测试一次啊 一个batch更新一次梯度 我一个epoch经常有一两千个batch 结束一个epoch测试一次感觉还好啊 两个epoch再测等的时间就太长了
from chinesener.
@ShangzhiH 可以加你的联系方式吗?有点问题要跟你聊聊
from chinesener.
from chinesener.
Related Issues (20)
- dev文件识别出0个句子
- 程序正确运行的时候应该是什么样的啊? HOT 2
- 将该模型部署到TensorFlow Serving时如何定义Signature?
- ner_predict.utf8
- 参数意义及设置,是否有keras版本的?
- 这个数据集是哪个团队标注的呀 HOT 2
- 取作者全部数据集训练OK,但是取数据集中的前3000条训练数据为新的训练数据,验证及测试集数据不变,训练出错。 HOT 3
- Fatal Python error: Aborted
- 数据量
- 你好,为什么在线预测出来的标签是beio格式的,而不是bio
- 请问大家在别的领域运用模型需要训练新的Word2vec模型嘛 HOT 1
- 求助,这个报错是什么原因,用的自己的数据和删除部分自带的训练数据后都会有该错误 HOT 2
- 把数据集中的LOC换成其他字母后报keyerror HOT 1
- 报错No such file or directory: 'data\\example.train'该如何解决呢
- 请问这个在window下怎么调用main呢 我加上了train_file,test_file,dev_file 执行后没有任何效果
- 如何去掉BiLSTM层?
- 如何添加attention层? HOT 2
- TypeError: slice indices must be integers or None or have an __index__ method HOT 1
- 每次都要加载模型有什么办法加载一次么
- 我修改了clean和train的False为True 然后运行报出name 'tf' is not defined的错误是什么情况 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 chinesener.