Skip to content

Online srv blin#14

Merged
you-n-g merged 6 commits intoonline_srvfrom
online_srv_blin
May 7, 2021
Merged

Online srv blin#14
you-n-g merged 6 commits intoonline_srvfrom
online_srv_blin

Conversation

@binlins
Copy link

@binlins binlins commented Apr 28, 2021

Description

Motivation and Context

How Has This Been Tested?

  • Pass the test by running: pytest qlib/tests/test_all_pipeline.py under upper directory of qlib.
  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Pipeline test:
  2. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

"""

def __init__(self, data: pd.DataFrame, start, end, step_len: int, fillna_type: str = "none", dtype=None):
def __init__(self, data: pd.DataFrame, start, end, step_len: int, fillna_type: str = "none", dtype=None, flt_data=None):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documents for flt_data

self.data_idx = deepcopy(self.data.index)
self.data_index = deepcopy(self.data.index)

if flt_data is not None:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data is sorted but flt_data is not sorted.
It can't ensure their orders are the same.

data = self._prepare_raw_seg(slc=slc, **kwargs)
tsds = TSDataSampler(data=data, start=start, end=end, step_len=self.step_len, dtype=dtype)
return tsds
flt_col = kwargs.pop('flt_col', None)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add documents about flt_col.

@you-n-g you-n-g merged commit 1c605e5 into online_srv May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants