|
在运行alpha/deap_factor/deap_mgr.py这个文件的时候跑到calc_expr遇到这个报错,我看这些公式是deap自己生成的吧?他自己生成的过程中有错误这个怎么解决?
decay_linear() missing 1 required positional argument: 'window'
File "[url=]/data/DevAlpha/lab/datafeed/expr.py[/url]", line 24, in calc_expr se = eval(expr) ^^^^^^^^^^ File "[url=]/data/DevAlpha/lab/datafeed/dataloader.py[/url]", line 75, in calc_expr se = calc_expr(df, field) ^^^^^^^^^^^^^^^^^^^^ File "[url=]/data/DevAlpha/lab/alpha/deap_factor/deap_mgr.py[/url]", line 143, in map_exprs df = CSVDataloader.calc_expr(self.df.copy(deep=True), fields=all_features, names=all_names) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "[url=]/data/DevAlpha/lab/alpha/deap_factor/deap_patch.py[/url]", line 223, in eaMuPlusLambda
|
|