make_df | R Documentation |
从csv文件中得到训练/测试数据集,差异天数,差异加权等。
make_df( file_name = "Data/info.csv", train_cr = 0.7, diff_days = 30, diff_base = 1.02 )
file_name: |
用来拟合的文件,包含真实DAU、DNU、次日留存等。默认 "Data/info.csv" |
train_cr: |
全部真实数据中用来做为训练的比例。默认0.8 |
diff_days: |
用于计算拟合差异的天数,按截止日倒推,对越近期的拟合成绩越看重。默认30 |
diff_base: |
计算差异时,每增加1天,差异(r)按照diff_base加权(r^diff_base)计为当日差异,最终按全部差异的中位数得到总差异。默认1.02 |
提供给get_prediction_daily()的参数列表(df_list),包含拟合数据集(train_df),测试数据集(test_df),基于真实数据拟合的天数(train_days),用于计算拟合差异的天数(diff_days),计算差异的加权(diff_base)
make_df()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.