diff --git a/qlib/finco/task.py b/qlib/finco/task.py index 72927cd7b..363f19115 100644 --- a/qlib/finco/task.py +++ b/qlib/finco/task.py @@ -509,7 +509,7 @@ class ConfigActionTask(ActionTask): yaml_config = yaml.safe_load(io.StringIO(config)) except yaml.YAMLError as 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 if self.target_component == "DataHandler": @@ -763,7 +763,7 @@ class SummarizeTask(Task): self._context_manager.set_context("summary", response) be.debug_mode = bak_debug_mode - + self.save_markdown(content=response) self.logger.info(f"Report has saved to {self.__DEFAULT_REPORT_NAME}", title="End") diff --git a/qlib/finco/workflow.py b/qlib/finco/workflow.py index 2d7869e98..4d9e2a16c 100644 --- a/qlib/finco/workflow.py +++ b/qlib/finco/workflow.py @@ -78,7 +78,7 @@ class WorkflowManager: self.prompt_template = PromptTemplate() self.context = WorkflowContextManager() 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): # if workspace exists, please confirm and remove it. Otherwise exit.