composeml.LabelTimes.threshold¶
- LabelTimes.threshold(value, inplace=False)[source]¶
通过测试标签是否高于阈值来创建二值标签。
- 参数
value (float) – 阈值的值。
inplace (bool) – 在原地修改标签。
- 返回
标签实例。
- 返回类型
labels (LabelTimes)
通过测试标签是否高于阈值来创建二值标签。
value (float) – 阈值的值。
inplace (bool) – 在原地修改标签。
标签实例。
labels (LabelTimes)