Commit 75dcbb86 authored by 赵威's avatar 赵威

update field

parent 055f2a56
...@@ -20,20 +20,20 @@ def main(): ...@@ -20,20 +20,20 @@ def main():
time_begin = time.time() time_begin = time.time()
# df = get_device_df_from_redis() # df = get_device_df_from_redis()
df2 = get_diary_df_from_redis() df2 = get_diary_df_from_redis()
print(df2.sample(1)) # print(df2.sample(1))
# print(df.size) # print(df.size)
# print(df2.size) # print(df2.size)
# a = device_feature_engineering(df) # a = device_feature_engineering(df)
# print(a.size) # print(a.size)
b = diary_feature_engineering(df2, from_redis=True) b = diary_feature_engineering(df2, from_redis=True)
print(b.sample(1)) print(b.sample(10))
device_df, diary_df, click_df, conversion_df = read_csv_data(Path("~/data/cvr_data/")) device_df, diary_df, click_df, conversion_df = read_csv_data(Path("~/data/cvr_data/"))
print(diary_df.sample(1)) # print(diary_df.sample(1))
# device_df = device_feature_engineering(device_df) # device_df = device_feature_engineering(device_df)
diary_df = diary_feature_engineering(diary_df) diary_df = diary_feature_engineering(diary_df)
print(diary_df.sample(1)) # print(diary_df.sample(1))
# cc_df = click_feature_engineering(click_df, conversion_df) # cc_df = click_feature_engineering(click_df, conversion_df)
# df = join_features(device_df, diary_df, cc_df) # df = join_features(device_df, diary_df, cc_df)
......
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