deepsort:学习使用具有改进的注意力机制的LSTM来对数字进行排序(Vinyals等人的Pointer Networks)-源码

上传者: 42135773 | 上传时间: 2021-09-08 09:49:06 | 文件大小: 18KB | 文件类型: ZIP
深度排序 学习使用seq2seq模型对数字进行排序。 运行这段代码 调用pip install -r requirements.txt安装所有依赖项。 产生资料 可以使用所有数据 样品电话 python generate.py \ --name="train" \ --size=10000 \ --max_val=256 \ --min_length=2 \ --max_length=256 \ 训练 可以通过在设置适当的参数,然后将train.run()设置为在调用,最后一次调用python main.py (是的,我很抱歉,对于未配置命令行参数)。 从上面的示例调用生成的数据集中训练了1个纪元,大约花费了10分钟。 评估 在train.txt上训练模型后,使用生成测试集( name="test" ),然后以与上所述相同的方式运行 ,以查看该模型的一些示例评估。 再

文件下载

资源详情

[{"title":"( 22 个子文件 18KB ) deepsort:学习使用具有改进的注意力机制的LSTM来对数字进行排序(Vinyals等人的Pointer Networks)-源码","children":[{"title":"deepsort-master","children":[{"title":".gitignore <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"visual.py <span style='color:#111;'> 655B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"metrics.py <span style='color:#111;'> 936B </span>","children":null,"spread":false}],"spread":true},{"title":"train.py <span style='color:#111;'> 5.72KB </span>","children":null,"spread":false},{"title":"metrics.py <span style='color:#111;'> 818B </span>","children":null,"spread":false},{"title":"evaluate.py <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":".gitattributes <span style='color:#111;'> 66B </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"models","children":[{"title":"encoder.py <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"ptr_decoder.py <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"attn_decoder.py <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"main.py <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"generate.py <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"train_ewc.py <span style='color:#111;'> 8.98KB </span>","children":null,"spread":false},{"title":"config","children":[{"title":"generate.py <span style='color:#111;'> 718B </span>","children":null,"spread":false}],"spread":false},{"title":"requirements.txt <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"data.py <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"experiments","children":[{"title":"train.py <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"evaluate.py <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"train_ewc.py <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"report_metrics.py <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明