Commit 2a892ff0 authored by 郭羽's avatar 郭羽

update feature

parent 62698495
...@@ -819,7 +819,7 @@ if __name__ == '__main__': ...@@ -819,7 +819,7 @@ if __name__ == '__main__':
"""训练数据保存 ======================================""" """训练数据保存 ======================================"""
timestmp3 = int(round(time.time())) timestmp3 = int(round(time.time()))
train_columns = model_columns + ["label", "timestamp"] train_columns = model_columns + ["label", "timestamp", "page_stay"]
trainSamples = samplesWithUserFeatures.select(*train_columns) trainSamples = samplesWithUserFeatures.select(*train_columns)
print("write to hdfs start...") print("write to hdfs start...")
splitTimestamp = int(time.mktime(time.strptime(addDays(0), "%Y%m%d"))) splitTimestamp = int(time.mktime(time.strptime(addDays(0), "%Y%m%d")))
......
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