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

add liuxao

parent c95cd883
...@@ -200,8 +200,8 @@ def transform(a,validate_date): ...@@ -200,8 +200,8 @@ def transform(a,validate_date):
test = test.drop("stat_date",axis=1) test = test.drop("stat_date",axis=1)
print("train shape") print("train shape")
print(train.shape) print(train.shape)
train.to_csv(path + "tr.csv", sep="\t", index=False) # train.to_csv(path + "tr.csv", sep="\t", index=False)
test.to_csv(path + "va.csv", sep="\t", index=False) # test.to_csv(path + "va.csv", sep="\t", index=False)
liuxiao = df[df["device_id"] == "358035085192742"] liuxiao = df[df["device_id"] == "358035085192742"]
liuxiao.to_csv(path + "liuxiao.csv", index=False) liuxiao.to_csv(path + "liuxiao.csv", index=False)
...@@ -293,7 +293,7 @@ if __name__ == "__main__": ...@@ -293,7 +293,7 @@ if __name__ == "__main__":
a = time.time() a = time.time()
temp, validate_date, ucity_id,ccity_name,manufacturer,channel = get_data() temp, validate_date, ucity_id,ccity_name,manufacturer,channel = get_data()
model = transform(temp, validate_date) model = transform(temp, validate_date)
get_predict_set(ucity_id,model,ccity_name,manufacturer,channel) # get_predict_set(ucity_id,model,ccity_name,manufacturer,channel)
b = time.time() b = time.time()
print("cost(分钟)") print("cost(分钟)")
print((b-a)/60) print((b-a)/60)
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