Adversarial-Learning-for-Neural-Dialogue-Generation-in-Tensorflow
Adversarial-Learning-for-Neural-Dialogue-Generation-in-Tensorflow copied to clipboard
about code
在代码里gen_disc()生成的训练数据没有被 h_disc.hier_train(disc_config, evl_config)函数用到,不是说 gen_disc()函数是生成判别器的训练数据的吗,而且代码中h_disc.hier_train(disc_config, evl_config)需要用到训练集和验证集。同时在训练的过程中,一直使用while true语句,没有判断训练停止的时候吗?
是,这样的,我开始也遇到了这个问题,手动停止了训练,效果很差
| | 邵珂 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年04月18日 20:36,cxf712 写道:
在代码里gen_disc()生成的训练数据没有被 h_disc.hier_train(disc_config, evl_config)函数用到,不是说 gen_disc()函数是生成判别器的训练数据的吗,而且代码中h_disc.hier_train(disc_config, evl_config)需要用到训练集和验证集。同时在训练的过程中,一直使用while true语句,没有判断训练停止的时候吗?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
可以在conf.py里添加一个配置项:max_pre_train_step = 30000 # 预训练的时候最多训练多少次 然后把 while True 改成 while current_step <= max_pre_train_step 就可以了