使用featuretools为预测模型生成标签

Nic*_*ini 2 featuretools

我目前正在使用自己的数据处理功能工具演示(https://github.com/Featuretools/predict_next_purchase/blob/master/Tutorial.ipynb).我创建了一个实体集,并尝试首先创建标签.笔记本引用了import utils,但没有使用功能工具进行安装.这是我需要安装的独立模块吗?

python 2.7 pip install featuretools

小智 5

utils.py文件特定于演示存储库而不是Featuretools库.
您应该在运行教程之前克隆或下载整个repo.

文件本身在这里:https://github.com/Featuretools/predict_next_purchase/blob/master/utils.py

make_labels函数位于该行的该文件中:https: //github.com/Featuretools/predict_next_purchase/blob/9cab9b28c94c43c69d7fb75b6ed92b3dd4cfb72d/utils.py#L66

在本地获得文件后,您可以根据具体用例对其进行修改.