Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String together the entire factor process #64

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rdagent/components/proposal/model_proposal.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def gen(self, trace: Trace) -> ModelHypothesis:
Environment(undefined=StrictUndefined)
.from_string(prompt_dict["hypothesis_gen"]["system_prompt"])
.render(
targets="factors",
targets="model",
scenario=self.scen.get_scenario_all_desc(),
hypothesis_output_format=context_dict["hypothesis_output_format"],
)
Expand All @@ -45,7 +45,7 @@ def gen(self, trace: Trace) -> ModelHypothesis:
Environment(undefined=StrictUndefined)
.from_string(prompt_dict["hypothesis_gen"]["user_prompt"])
.render(
targets="factors",
targets="model",
hypothesis_and_feedback=context_dict["hypothesis_and_feedback"],
RAG=context_dict["RAG"],
)
Expand Down Expand Up @@ -74,7 +74,7 @@ def convert(self, hypothesis: Hypothesis, trace: Trace) -> ModelExperiment:
Environment(undefined=StrictUndefined)
.from_string(prompt_dict["hypothesis2experiment"]["system_prompt"])
.render(
targets="factors",
targets="model",
scenario=trace.scen.get_scenario_all_desc(),
experiment_output_format=context["experiment_output_format"],
)
Expand All @@ -83,7 +83,7 @@ def convert(self, hypothesis: Hypothesis, trace: Trace) -> ModelExperiment:
Environment(undefined=StrictUndefined)
.from_string(prompt_dict["hypothesis2experiment"]["user_prompt"])
.render(
targets="factors",
targets="model",
target_hypothesis=context["target_hypothesis"],
hypothesis_and_feedback=context["hypothesis_and_feedback"],
target_list=context["target_list"],
Expand Down
2 changes: 1 addition & 1 deletion rdagent/scenarios/qlib/prompts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ model_experiment_output_format: |-
"variable or function name 1": "description of variable or function 1",
"variable or function name 2": "description of variable or function 2"
}
"model_type": "type of model 1, Tabular or TimesSeries"
"model_type": "type of model 1, Tabular or TimesSeries" # Should be one of "Tabular" or "TimeSeries"
}
# Don't add ellipsis (...) or any filler text that might cause JSON parsing errors here!
}
Loading