|
@@ -154,7 +154,7 @@ def cal_score_initial_20240322(df, param):
|
|
|
"""
|
|
|
log_.info("进入了cal_score_initial_20240322")
|
|
|
df = df.fillna(0)
|
|
|
- df['log_back'] = (df['lastonehour_allreturn'] + 1).apply(math.log)
|
|
|
+ df['log_back'] = (df['lastonehour_return'] + 1).apply(math.log)
|
|
|
df['share_rate'] = (df['lastonehour_share'] + 1) / (df['lastonehour_play'] + 1000)
|
|
|
df['back_rate'] = (df['lastonehour_return'] + 1) / (df['lastonehour_share'] + 10)
|
|
|
df['ctr'] = (df['lastonehour_play'] + 1) / (df['lastonehour_show_region'] + 1000)
|