1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-17 01:14:35 +08:00

fix lint issue

This commit is contained in:
chaosyu
2021-07-15 11:46:10 +08:00
committed by you-n-g
parent b723f14619
commit 28cb827a23
2 changed files with 5 additions and 3 deletions

View File

@@ -337,7 +337,9 @@ class MLflowExperiment(Experiment):
filter_string : str filter_string : str
mlflow supported filter string like 'params."my_param"="a" and tags."my_tag"="b"', use this will help to reduce too much run number. mlflow supported filter string like 'params."my_param"="a" and tags."my_tag"="b"', use this will help to reduce too much run number.
""" """
runs = self._client.search_runs(self.id, run_view_type=ViewType.ACTIVE_ONLY, max_results=max_results, filter_string=filter_string) runs = self._client.search_runs(
self.id, run_view_type=ViewType.ACTIVE_ONLY, max_results=max_results, filter_string=filter_string
)
recorders = dict() recorders = dict()
for i in range(len(runs)): for i in range(len(runs)):
recorder = MLflowRecorder(self.id, self._uri, mlflow_run=runs[i]) recorder = MLflowRecorder(self.id, self._uri, mlflow_run=runs[i])

View File

@@ -139,7 +139,7 @@ class RecorderCollector(Collector):
rec_filter_func=None, rec_filter_func=None,
artifacts_path={"pred": "pred.pkl"}, artifacts_path={"pred": "pred.pkl"},
artifacts_key=None, artifacts_key=None,
filter_string: str = "" filter_string: str = "",
): ):
""" """
Init RecorderCollector. Init RecorderCollector.