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

feat: Feature selection v3 to support all actions #280

Merged
merged 6 commits into from
Sep 20, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
CI
  • Loading branch information
xisen-w committed Sep 19, 2024
commit a3b71f0f0ca074c6adbc47fbd42fbc312d4f6e8d
8 changes: 2 additions & 6 deletions rdagent/scenarios/kaggle/developer/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_model_code(self, exp: Experiment):
return exp.sub_workspace_list[0].code_dict.get("model_nn.py")
else:
return None

def generate_feedback(self, exp: Experiment, hypothesis: Hypothesis, trace: Trace) -> HypothesisFeedback:
"""
The `ti` should be executed and the results should be included, as well as the comparison between previous results (done by LLM).
Expand Down Expand Up @@ -145,11 +145,7 @@ def generate_feedback(self, exp: Experiment, hypothesis: Hypothesis, trace: Trac
}

# Generate the user prompt
usr_prompt = (
Environment(undefined=StrictUndefined)
.from_string(prompt_dict[prompt_key]["user"])
.render(**render_dict)
)
usr_prompt = Environment(undefined=StrictUndefined).from_string(prompt_dict[prompt_key]["user"]).render(**render_dict)

# Call the APIBackend to generate the response for hypothesis feedback
response = APIBackend().build_messages_and_create_chat_completion(
Expand Down
Loading