Commit d0ed7c24 authored by 张彦钊's avatar 张彦钊

增加特征

parent a3dd14f0
......@@ -120,8 +120,8 @@ def get_data():
df = df.drop("device_id", axis=1)
# TODO 上线后把最近一天的数据集放进训练集,这样用户的正、负反馈能及时获取
# train = df
train = df[df["stat_date"] != validate_date + "stat_date"]
train = df
test = df[df["stat_date"] == validate_date + "stat_date"]
for i in ["ucity_id", "ccity_name", "device_type", "manufacturer",
"channel", "top", "time", "stat_date", "hospital_id",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment