Commit 9ad980dc authored by 赵威's avatar 赵威

add printer

parent 72ecf50f
......@@ -65,6 +65,7 @@ def main():
df2 = get_diary_df_from_redis()
redis_device_df = device_feature_engineering(df)
redis_diary_df = diary_feature_engineering(df2, from_redis=True)
print(redis_diary_df["card_id"])
time_1 = timeit.default_timer()
res = join_device_diary(device_id, diary_ids, redis_device_df, redis_diary_df)
......@@ -73,8 +74,8 @@ def main():
print(res.sample(1))
# model_predict(res, predict_fn)
# total_1 = (timeit.default_timer() - time_1)
# print("prediction total cost {:.5f}s".format(total_1))
total_1 = (timeit.default_timer() - time_1)
print("prediction total cost {:.5f}s".format(total_1))
total_time = (time.time() - time_begin) / 60
print("cost {:.2f} mins at {}".format(total_time, datetime.now()))
......
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