mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-12 15:26:54 +08:00
fix one workflow
This commit is contained in:
@@ -509,7 +509,7 @@ class ConfigActionTask(ActionTask):
|
|||||||
yaml_config = yaml.safe_load(io.StringIO(config))
|
yaml_config = yaml.safe_load(io.StringIO(config))
|
||||||
except yaml.YAMLError as e:
|
except yaml.YAMLError as e:
|
||||||
self.logger.info(f"Yaml file is not in the correct format: {e}")
|
self.logger.info(f"Yaml file is not in the correct format: {e}")
|
||||||
return_tasks = [ConfigActionTask(self.target_component, reconfig=True, error=str(e))]
|
return_tasks = [HyperparameterActionTask(self.target_component, regenerate=True, error=str(e)), ConfigActionTask(self.target_component, reconfig=True, error=str(e))]
|
||||||
return return_tasks
|
return return_tasks
|
||||||
|
|
||||||
if self.target_component == "DataHandler":
|
if self.target_component == "DataHandler":
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class WorkflowManager:
|
|||||||
self.prompt_template = PromptTemplate()
|
self.prompt_template = PromptTemplate()
|
||||||
self.context = WorkflowContextManager()
|
self.context = WorkflowContextManager()
|
||||||
self.context.set_context("workspace", self._workspace)
|
self.context.set_context("workspace", self._workspace)
|
||||||
self.default_user_prompt = "Please help me build a low turnover strategy that focus more on longterm return in China A csi800. Please help to use GRU model."
|
self.default_user_prompt = "Please help me build a low turnover strategy that focus more on longterm return in China A csi800. Please help to use lightgbm model."
|
||||||
|
|
||||||
def _confirm_and_rm(self):
|
def _confirm_and_rm(self):
|
||||||
# if workspace exists, please confirm and remove it. Otherwise exit.
|
# if workspace exists, please confirm and remove it. Otherwise exit.
|
||||||
|
|||||||
Reference in New Issue
Block a user