mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-16 17:12:20 +08:00
Add docs for the reampling example. (#1285)
* Update features_sample.py * Update features_sample.py
This commit is contained in:
@@ -5,6 +5,8 @@ from qlib.data.inst_processor import InstProcessor
|
|||||||
|
|
||||||
|
|
||||||
class Resample1minProcessor(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):
|
def __init__(self, hour: int, minute: int, **kwargs):
|
||||||
self.hour = hour
|
self.hour = hour
|
||||||
self.minute = minute
|
self.minute = minute
|
||||||
|
|||||||
Reference in New Issue
Block a user