mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-16 09:11:00 +08:00
Remove methods with unnecessary super delegation.
Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
@@ -1045,9 +1045,6 @@ class SimpleDatasetCache(DatasetCache):
|
|||||||
class DatasetURICache(DatasetCache):
|
class DatasetURICache(DatasetCache):
|
||||||
"""Prepared cache mechanism for server."""
|
"""Prepared cache mechanism for server."""
|
||||||
|
|
||||||
def __init__(self, provider):
|
|
||||||
super(DatasetURICache, self).__init__(provider)
|
|
||||||
|
|
||||||
def _uri(self, instruments, fields, start_time, end_time, freq, disk_cache=1, **kwargs):
|
def _uri(self, instruments, fields, start_time, end_time, freq, disk_cache=1, **kwargs):
|
||||||
return hash_args(*self.normalize_uri_args(instruments, fields, freq), disk_cache)
|
return hash_args(*self.normalize_uri_args(instruments, fields, freq), disk_cache)
|
||||||
|
|
||||||
|
|||||||
@@ -654,9 +654,6 @@ class LocalExpressionProvider(ExpressionProvider):
|
|||||||
Provide expression data from local data source.
|
Provide expression data from local data source.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
|
|
||||||
def expression(self, instrument, field, start_time=None, end_time=None, freq="day"):
|
def expression(self, instrument, field, start_time=None, end_time=None, freq="day"):
|
||||||
expression = self.get_expression_instance(field)
|
expression = self.get_expression_instance(field)
|
||||||
start_time = pd.Timestamp(start_time)
|
start_time = pd.Timestamp(start_time)
|
||||||
|
|||||||
@@ -76,17 +76,6 @@ class DatasetH(Dataset):
|
|||||||
- The processing is related to data split.
|
- The processing is related to data split.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, handler: Union[dict, DataHandler], segments: dict):
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
handler : Union[dict, DataHandler]
|
|
||||||
handler will be passed into setup_data.
|
|
||||||
segments : dict
|
|
||||||
handler will be passed into setup_data.
|
|
||||||
"""
|
|
||||||
super().__init__(handler, segments)
|
|
||||||
|
|
||||||
def init(self, handler_kwargs: dict = None, segment_kwargs: dict = None):
|
def init(self, handler_kwargs: dict = None, segment_kwargs: dict = None):
|
||||||
"""
|
"""
|
||||||
Initialize the DatasetH
|
Initialize the DatasetH
|
||||||
|
|||||||
@@ -229,9 +229,6 @@ class MLflowExpManager(ExpManager):
|
|||||||
Use mlflow to implement ExpManager.
|
Use mlflow to implement ExpManager.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, uri, default_exp_name):
|
|
||||||
super(MLflowExpManager, self).__init__(uri, default_exp_name)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def client(self):
|
def client(self):
|
||||||
# Delay the creation of mlflow client in case of creating `mlruns` folder when importing qlib
|
# Delay the creation of mlflow client in case of creating `mlruns` folder when importing qlib
|
||||||
|
|||||||
Reference in New Issue
Block a user