Closed sxhysj closed 2 years ago
@sxhysj 你好,首先time_field字段可以用日期。但是由于你的数据形式为“2018-09-20",这仅能使用token存储,因此是无法排序的。如果你想要对数据进行排序,请将数据先处理成数字"20180920",此时将数据类型设置成float后就可以排序了。详情见 API文档中有关Evaluation Settings的部分。
但是由于你的参数中order设置为‘RO’,所以并不会对数据排序。那么时间只能作为一个普通的特征来使用,这应该是无意义的。
除此以外,一般来说我们应用context-aware recommendation模型来做CTR预测,所以你的评测方式应该改为'labeled', 同时评价指标也应改为'AUC','LogLoss'等,而不是使用排序的评价指标。这里提供一个参考:
eval_args:
group_by: None
mode: labeled
metrics: ['AUC', 'LogLoss']
valid_metric: AUC
伯乐系统同样支持你使用这些模型来做LTR任务,但此时你需要保证inter文件中不包含context信息。具体可以阅读文档中有关Context-aware Recommendation模型参数设置部分
好的,已调通,非bug
描述这个 bug 我使用NFM、LightGBM模型的时候,会遇到如下错误:
相应的参数表设置为:
timestamp列的数据形式为:
实验环境:
我的问题是:这个的timestamp是日期,似乎是这个问题导致了keyerror的错误。我是否可以在context-aware模型中不适用time_field字段呢?time_field字段可以用日期吗?