wide_deep视频demo问题

来源:10-5 代码实战wd模型之模型对象的构建

慕哥0458965

2019-01-28

老师,您好,我按照您上次的回答,为了在tensorflow1.7跑通去掉了filter,但是遇到了新的错误
Traceback (most recent call last):
File “/Users/wangyingshuai/deep_recommend/personal_recommendation/WD/production/train.py”, line 235, in
run_main("…/data/train.txt", “…/data/test.txt”, “…/data/wd”, “…/data/wd_export”)
File “/Users/wangyingshuai/deep_recommend/personal_recommendation/WD/production/train.py”, line 231, in run_main
test_model_performance(model_es, test_file)
File “/Users/wangyingshuai/deep_recommend/personal_recommendation/WD/production/train.py”, line 217, in test_model_performance
get_auc(predict_list, test_label)
File “/Users/wangyingshuai/deep_recommend/personal_recommendation/WD/production/train.py”, line 160, in get_auc
label = test_label[index]
IndexError: list index out of range
非常期待您的指点?

写回答

1回答

David

2019-01-28

这个是你放的测试数据越界了,你仔细看看代码保错其实并不难。

0
0

个性化推荐算法实战(可用于毕设) BAT大牛亲授

让你掌握一套完整的,能落地的个性化推荐算法体系。可用于毕设。

839 学习 · 253 问题

查看课程