Kyle Anderson
Kyle Anderson
如题,qlib.contrib.eva.alpha.py中的calc_long_short_return函数返回了两个结果,分别为(r_long - r_short) / 2和r_avg,看计算过程应该分别是多空收益率和所有股票的等权收益率。 但在qlib.workflow.record_temp.py中SigAnaRecord._generate()在调用calc_long_short_return()函数时将返回结果分别命名为long_short_r和long_avg_r,并在下方输出时直接将long_avg_r作为多头组合收益率。 这会导致最终看到的多头收益率其实是所有样本股等权的平均收益率。 怀疑是自己哪里没理解到位,求答疑。 qlib.workflow.record_temp.py SigAnaRecord._generate()中的片段:  qlib.contrib.eva.alpha.py中的calc_long_short_return中的片段: 
As I know, the objective function when initializing the model will be used to do the gradient descent for the model, the eval_metric when calling the fit funtion will indicate...