问答交流

ts_max(high,20)无法在过滤功能中引用

由yewfei创建,最终由small_q 被浏览 28 用户

在输入特征列表中列出ts_max(high,20)和ts_min(low,20),在基础和衍生特征抽取可以成功抽取到这2个值,但是当我调用数据过滤模块的时候,过滤条件写上“

ts_max(high,20)/ts_min(low,20) <1.5

结果发现报错并不支持这个条件,不清楚为什么


报错如下:

During handling of the above exception, another exception occurred:

KeyError: 'ts_max'

The above exception was the direct cause of the following exception:

pandas.core.computation.ops.UndefinedVariableError: name 'ts_max' is not defined

During handling of the above exception, another exception occurred:

ValueError: "ts_max" is not a supported function

评论
  • 你好数据过滤只模块做数据字段过滤不做数据计算,你这边可以参考一下下面的例子 [https://bigquant.com/experimentshare/82306365c83b4973b86c36fc0da1a744](https://bigquant.com/experimentshare/82306365c83b4973b86c36fc0da1a744) \
  • 你好数据过滤只模块做数据字段过滤不做数据计算,你这边可以参考一下下面的例子 [https://bigquant.com/experimentshare/82306365c83b4973b86c36fc0da1a744](https://bigquant.com/experimentshare/82306365c83b4973b86c36fc0da1a744) \