Commit c2c2f949 authored by 宋柯's avatar 宋柯

模型bug修复

parent 4a3f3fae
...@@ -139,8 +139,9 @@ def getItemStaticFeatures(itemStatisticDays, startDay, endDay): ...@@ -139,8 +139,9 @@ def getItemStaticFeatures(itemStatisticDays, startDay, endDay):
.withColumnRenamed('label_count_avg', 'exp_count_avg')\ .withColumnRenamed('label_count_avg', 'exp_count_avg')\
.withColumnRenamed('label_count_stddev', 'exp_count_stddev') .withColumnRenamed('label_count_stddev', 'exp_count_stddev')
clickStaticFeatures.show(20, truncate=False) drop_columns = ['label', 'label_count']
expStaticFeatures.show(20, truncate=False) clickStaticFeatures.drop(drop_columns).show(20, truncate = False)
expStaticFeatures.drop(drop_columns).show(20, truncate = False)
return clickStaticFeatures, expStaticFeatures return clickStaticFeatures, expStaticFeatures
......
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