From e762548295731966c8bf56a90d5732a3750f7a87 Mon Sep 17 00:00:00 2001 From: you-n-g Date: Wed, 14 Sep 2022 18:02:19 +0800 Subject: [PATCH] Add docs for the reampling example. (#1285) * Update features_sample.py * Update features_sample.py --- examples/benchmarks/LightGBM/features_sample.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/benchmarks/LightGBM/features_sample.py b/examples/benchmarks/LightGBM/features_sample.py index 0b996bd1f..249be1856 100644 --- a/examples/benchmarks/LightGBM/features_sample.py +++ b/examples/benchmarks/LightGBM/features_sample.py @@ -5,6 +5,8 @@ from qlib.data.inst_processor import InstProcessor class Resample1minProcessor(InstProcessor): + """This processor tries to resample the data. It will reasmple the data from 1min freq to day freq by selecting a specific miniute""" + def __init__(self, hour: int, minute: int, **kwargs): self.hour = hour self.minute = minute