shenweichen / DeepMatch

A deep matching model library for recommendations & advertising. It's easy to train models and to export representation vectors which can be used for ANN search.
https://deepmatch.readthedocs.io/en/latest/
Apache License 2.0
2.22k stars 530 forks source link

run_sdm.py执行时deepctr依赖缺少SparseFeat #37

Closed vikotse closed 4 years ago

vikotse commented 4 years ago

Describe the bug(问题描述) run_sdm.py执行时deepctr依赖缺少SparseFeat

To Reproduce(复现步骤) 我没有安装deepctr的包,而是git clone了DeepCTR的库 DeepMatch/example/run_sdm.py中,from deepctr.inputs import SparseFeat, VarLenSparseFeat这一行,出现ImportError: cannot import name SparseFeat的问题。 我在翻阅DeepCTR/deepctr/inputs.py中,在其中也没有找到SparseFeat, VarLenSparseFeat。 请问是需要安装的deepctr包,与deepctr代码库不一致?

Operating environment(运行环境):

Additional context Add any other context about the problem here.

vikotse commented 4 years ago

排查到是deepctr版本问题,可忽略