Skip to content
Merged
Show file tree
Hide file tree
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
remove try-except limit from coder prompt
  • Loading branch information
XianBW committed Feb 25, 2025
commit 2b6eee4b0d52d73e7f47e5ce71358fa2a08ed1e0
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ ensemble_coder:
{% endfor %}
{% endif %}

Don't write any try-except block in your python code. The user will catch the exception message and provide the feedback to you.
You should avoid using logging module to output information in your generated code, and instead use the print() function.

## Output Format
Expand Down
1 change: 0 additions & 1 deletion rdagent/components/coder/data_science/feature/prompts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ feature_coder:
- If a previous attempt exists, improve upon it without repeating mistakes.
- If errors indicate a missing file, find a way to download it or implement an alternative solution.
- You should avoid using logging module to output information in your generated code, and instead use the print() function.
- Don't write any try-except block in your python code. The user will catch the exception message and provide the feedback to you.

## Output Format
Please response the code in the following json format. Here is an example structure for the JSON output:
Expand Down
1 change: 0 additions & 1 deletion rdagent/components/coder/data_science/model/prompts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ model_coder:
2. You should avoid using logging module to output information in your generated code, and instead use the print() function.
3. You can decide whether to use AutoML based on the characteristics of the task.
4. If the model can both be implemented by PyTorch and Tensorflow, please use pytorch for broader compatibility.
5. Don't write any try-except block in your python code. The user will catch the exception message and provide the feedback to you.

## Output Format
{% if out_spec %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ data_loader_coder:

## Guidelines
1. Ensure that the dataset is loaded strictly from `/kaggle/input/`, following the exact folder structure described in the **Data Folder Description**, and do not attempt to load data from the current directory (`./`).
2. Don't write any try-except block in your python code. The user will catch the exception message and provide the feedback to you.
3. You should avoid using logging module to output information in your generated code, and instead use the print() function.

## Output Format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ workflow_coder:
3. The user may provide specific code organization rules and instructions. Ensure that the integration follows the given framework and structure.
4. After predicting the output, print the shape and other information of the output to stdout to help the evaluator assess the code.
5. You should avoid using logging module to output information in your generated code, and instead use the print() function.
6. Don't write any try-except block in your python code. The user will catch the exception message and provide the feedback to you.

## Output Format
Please response the code in the following json format. Here is an example structure for the JSON output:
Expand Down