mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 08:16:54 +08:00
fix Recorder init bug
This commit is contained in:
@@ -82,12 +82,10 @@ def init(default_conf="client", **kwargs):
|
|||||||
if "flask_server" in C:
|
if "flask_server" in C:
|
||||||
LOG.info(f"flask_server={C['flask_server']}, flask_port={C['flask_port']}")
|
LOG.info(f"flask_server={C['flask_server']}, flask_port={C['flask_port']}")
|
||||||
|
|
||||||
# set up QlibRecorder
|
|
||||||
uri = C["exp_uri"]
|
|
||||||
# exp manager module
|
# exp manager module
|
||||||
module = get_module_by_module_path("qlib.workflow.expm")
|
module = get_module_by_module_path("qlib.workflow.expm")
|
||||||
exp_manager = init_instance_by_config(C["exp_manager"], module)
|
exp_manager = init_instance_by_config(C["exp_manager"], module)
|
||||||
qr = QlibRecorder(exp_manager, uri)
|
qr = QlibRecorder(exp_manager)
|
||||||
R.register(qr)
|
R.register(qr)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ class ProcessInf(Processor):
|
|||||||
|
|
||||||
class MinMaxNorm(Processor):
|
class MinMaxNorm(Processor):
|
||||||
def __init__(self, fit_start_time, fit_end_time, fields_group=None):
|
def __init__(self, fit_start_time, fit_end_time, fields_group=None):
|
||||||
|
# FIXME: time is not used
|
||||||
self.fit_start_time = fit_start_time
|
self.fit_start_time = fit_start_time
|
||||||
self.fit_end_time = fit_end_time
|
self.fit_end_time = fit_end_time
|
||||||
self.fields_group = fields_group
|
self.fields_group = fields_group
|
||||||
@@ -135,6 +136,7 @@ class MinMaxNorm(Processor):
|
|||||||
|
|
||||||
class ZscoreNorm(Processor):
|
class ZscoreNorm(Processor):
|
||||||
def __init__(self, fit_start_time, fit_end_time, fields_group=None):
|
def __init__(self, fit_start_time, fit_end_time, fields_group=None):
|
||||||
|
# FIXME: time is not used
|
||||||
self.fit_start_time = fit_start_time
|
self.fit_start_time = fit_start_time
|
||||||
self.fit_end_time = fit_end_time
|
self.fit_end_time = fit_end_time
|
||||||
self.fields_group = fields_group
|
self.fields_group = fields_group
|
||||||
|
|||||||
Reference in New Issue
Block a user