mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-07 13:00:58 +08:00
docs and bug fixed
This commit is contained in:
@@ -131,6 +131,8 @@ class OnlineSimulationExample:
|
||||
self.rolling_online_manager.simulate(end_time=self.end_time)
|
||||
print("========== collect results ==========")
|
||||
print(self.rolling_online_manager.get_collector()())
|
||||
print("========== signals ==========")
|
||||
print(self.rolling_online_manager.get_signals())
|
||||
print("========== online history ==========")
|
||||
print(self.rolling_online_manager.get_online_history(self.exp_name))
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ class RollingOnlineExample:
|
||||
task_url="mongodb://10.0.0.4:27017/",
|
||||
task_db_name="rolling_db",
|
||||
rolling_step=550,
|
||||
tasks=[task_xgboost_config, task_lgb_config],
|
||||
tasks=[task_xgboost_config], # , task_lgb_config],
|
||||
):
|
||||
mongo_conf = {
|
||||
"task_url": task_url, # your MongoDB url
|
||||
@@ -148,6 +148,8 @@ class RollingOnlineExample:
|
||||
self.rolling_online_manager.routine()
|
||||
print("========== collect results ==========")
|
||||
print(self.collector())
|
||||
print("========== signals ==========")
|
||||
print(self.rolling_online_manager.get_signals())
|
||||
|
||||
def main(self):
|
||||
self.first_run()
|
||||
|
||||
Reference in New Issue
Block a user