mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-05 03:07:42 +00:00
f78175b37a
* refine ds modal for more cases: eval and es * update model template * prompts for model and ensemble * fix a bug * fix a bug * init: ds workflow evovingstrategy * Adding ensemble (#505) * Initial Draft * Updating logic for init * Revising * Successful Testing * Updating to use the latest & right class * bug: bug-fixing for testing * data science loop changes * data science loop base * ds loop feedback * fix * remove measure_time because it's duplicated (in LoopBase) * add the knowledge query for data_loader & feature * edit ds workflow evaluator * data_loader bug fix * stop evolving when all tasks completed * llm app change * fix break all complete strategy * Adding queried knowledge (#508) Co-authored-by: XianBW <36835909+XianBW@users.noreply.github.com> * fix loop bug * ds workflow evaluator; test; refine prompts * workflow spec * fix ci * feature task changes * ds loop change * fix a bug in feat * add query knowledge for model and workflow * llm_debug info(for show) using pickle instead of json * remove NextLoopException * loop change * coder raise CoderError when all sub_tasks failed * rename code_dict to file_dict in FBWorkspace * add CoSTEER unittest * now show self.version in Task.get_task_information(), simplify CoSTEER sub tasks definition * remove some properties in ModelTask, add model_type in it. * fix llm app bug * llm web app bug fix * ds loop bug fix * fix: give component code to feature&ens eval * loop catch error bug * rename load_from_raw_data to load_data * feat: Add debug data creation functionality for data science scenarios * support local folder (#511) * support local folder * remove unnecessary random * KaggleScen Subclass * small fix * use template for style description * update default scen to kaggle * update sample data script * make sure frac < 1 * fix a bug * feature spec changes * fix * changeimport order * clear unnecessary std outputs * fix a typo * create sample folder after unzip kaggle data * feature/model test script update * Align the data types across modules. * fix a bug in model eval * show line number * move sample entry point to app * spec & model prompt changes * Refine the competition specification to address the data type problem and the coherence issue. * fix some bugs * add file filter in FBworkspace.code property * support non-binary prediction * avoid too much warnings * fix a bug in ensemble module * filtered the knowledge query in all modules * delete RAG in idea proposal * refine the code in ensemble * show exp workspace in llm_st * exp_gen bug fix * feedback bug fix * use `feature` instead of `feat01` * Trace & method of judging if exp is completed change * fix a bug in package calling and execute ci * fix code * bug fix * bug fix * fix a bug * fix some bugs * fix a bug * refactor: Enhance error handling and feedback in data science loop * support different use_azure on chat and embedding models * multi-model proposal logic * fix a small syntax error * loopBase and some changes * ensemble scores change * fbworkspace.code -> .all_codes * use all model codes in workflow coder * check scores.csv's keys(model_names) * model name changes * add a todo in ensemble test * sota_exp changes * give model info in exp gen * add runner time limit * config using debug data or not in evals * exp to feedback base * add feature code when writing model task * small problem * copying during sampling * update * refactor: Simplify code handling and improve workspace management * model part output fix * print model's execution time * bug fix * ensemble test fix * ens small change * ens_test bug fix * Refine partial expansion logic to display only a few subfolders when their structure is uniform, improving readability in nested directories. * several update on prompts * sample subfolders * Filter the stdout after code execution to remove irrelevant information e.g. progress bars, whitespace characters, excessive line breaks. * Add some more prompts and comments * several update on the first init rounds * model timeout as error * fix pattern of getting model codes in workspace * small bux fix on model prompts * remove get_code_with_key since we have regex pattern * fix: Correct tqdm progress bar update logic in LoopBase class * feat: Add diff generation and enhance feedback mechanism in data science loop * update some fix to model and workflow prompts * refine the logic of progress bar filter * add last_successful_exp in exp_gen * fix a one line bug * add a hint in prompt * fix data sample for bms * fix data sample for bms * hypothesis small fix * crawler readme update * fix component gen * fix bug * annotation change * load description.md if it exists * refactor: Simplify SOTA description handling in feedback and prompts * refactor: Use shared templates for feedback and experiment descriptions * change webapp for model codes changes * update proposal * add timeout message for docker run output * fix * refine the code in docker time processing * use .shape instead of len() when do shape eval * won't change size during iteration * support bson sample * sample support jsonl and bson * add former_code to coder prompts * a little speed us in debug data creating * filter progress bar when eval ens and main * avoid costeer makes no change to former code * fix several log error * add timeout judge threshold * fix some bugs in the evaluation of component output shapes * File structure for supporting litellm (#517) Co-authored-by: Young <afe.young@gmail.com> * ignore submission and show processing * ignore submission and show processing * add efficiency notice * refactor: Enhance error message with detailed feedback summary * refactor: Simplify component handling in DSExpGen class * refactor: Update code structure and add docstring for clarity * reserve one sample to each label in data sampling * add Evaluation info * refine costeer code to avoid giving same code twice * use raw_description as plain text * add a prompt hint to avoid same dict key * model task name bug in first model exp gen * fix a typo * add some debug info in costeer tests * task init change * enhance data sampling * refine the code in data_loader * more reasonable loop * fix a bug in data folder description * add error msg & traceback to execution feedback * fix llm error msg detection * add task information to costeer eval & add cache to docker run(use zipfile to store the whole workspace) * fix CI first round * fix CI second round * use txt to store test script to avoid pytest * remove zipfile in requirements * add azure.identity to requirements * ignore debug web page * component test changes * remove redundent task_desc in model coder * feat: Add APE module and prompts for automated prompt engineering * fix: Update .gitignore and improve text formatting in eval.py * refactor: Update print output and improve code comments and imports * style: Fix string formatting and import order in ape.py and fmt.py * exclude ape * add a data folder notice * reduce unnecessary output to stdout * refine the code of describe_data_folder * fix ci * style: streamlit style update (#522) * streamlit style update * fix import * fix format * fix llm_st loop progress bar * debugapp small change * fix model str * refine some prompts * fix model str * fix CI * refine the logic associated with the data_folder * fix ci * small change * set filter_progress_bar as default in execute * model proposal with workflow * add submission check in workflow eval * fix bug * small change * fix CI * fix CI * refactor: Move generate_diff to utils and update DSExpGen logic * more reasonable prompt describing metric direction * fix a minor jinja2 bug * quick fix exp_gen bugs * fix the following bug * fix * fix some bugs * remove workflow from model * add pending_tasks_list in data science to enable coding model and workflow * refine the code for handling JSON-formatted data descriptions * assert with information * ensure correct csv file name * add logging to help record the output * log competition * add log tag for debug llm app * test: Test ds refactor ll (#523) * fix bugs to former scenario * fix a bug because coding in rdloop changed * fix the bug when feedback gets no hypothesis * fix trace structure * change all trace hist when merging hypothesis to experiments * ignore some error in ruff * fix kaggle scenario bugs * refine one line * another bug * another small bug * fix ui bugs * chage kaggle train.py path --------- Co-authored-by: Xu Yang <peteryang@vip.qq.com> * fix CI * Update rdagent/app/data_science/loop.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add samplecsv into spec prompts * fix CI --------- Co-authored-by: TPLin22 <tplin2@163.com> Co-authored-by: yuanteli <1957922024@qq.com> Co-authored-by: Xisen Wang <118058822+xisen-w@users.noreply.github.com> Co-authored-by: Bowen Xian <xianbowen@outlook.com> Co-authored-by: Xu Yang <peteryang@vip.qq.com> Co-authored-by: XianBW <36835909+XianBW@users.noreply.github.com> Co-authored-by: Tim <illking@foxmail.com> Co-authored-by: 炼金术师华华 <37462254+YeewahChan@users.noreply.github.com> Co-authored-by: Linlang <30293408+SunsetWolf@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
387 lines
19 KiB
YAML
387 lines
19 KiB
YAML
spec:
|
|
system: |-
|
|
You are a world-class data scientist and machine learning engineer with deep expertise in statistics, mathematics, and computer science.
|
|
Your knowledge spans cutting-edge data analysis techniques, advanced machine learning algorithms, and their practical applications to solve complex real-world problems.
|
|
|
|
Currently, you are working on a Kaggle competition project.
|
|
This project involves analyzing data and building models to beat other competitors, with the code being generated by large language models.
|
|
|
|
Your overall task is provided below:
|
|
{{ task_desc }}
|
|
|
|
Your task is to write five specification texts (in markdown format) for the following tasks, based on the competition information provided
|
|
- Data loading (and preprocessing)
|
|
- Feature Engineering
|
|
- Model Building
|
|
- Ensemble
|
|
- The overall workflow
|
|
|
|
The specifications for each step should be tailored to the competition information provided.
|
|
|
|
Your specification should consists two parts:
|
|
1. The function definition in code format with detailed annotation to each parameter and return value.
|
|
2. A detailed docstring to the function that explains the purpose of the function, the input parameters, and the output.
|
|
3. Additional information or notes that the coder should consider while implementing the function.
|
|
Your specifications should not include any code implementation, only the function definition and docstring.
|
|
|
|
-----------Competition Information-----------
|
|
{{ competition_info }}
|
|
|
|
-----------Folder Description---------(All path are relative to the data folder)
|
|
- Ensure that all columns in sample_submission can be generated.
|
|
{{ folder_spec }}
|
|
|
|
user:
|
|
data_loader: |-
|
|
Data loader specification text should follow these detailed requirements:
|
|
1. Function Interface:
|
|
- Function Name: `load_data`
|
|
- Input: No input arguments.
|
|
- Output:
|
|
- `X` (DT, define based on competition information): Feature matrix for training data.
|
|
- `y` (DT): Target vector for training data.
|
|
- `X_test` (DT): Feature matrix for test data.
|
|
- `test_ids` (DT): Identifiers for the test data.
|
|
- Docstring Requirements:
|
|
- Describe the purpose of the function.
|
|
- Specify the data source location (`/kaggle/input/`).
|
|
- Clearly define the structure and type of the output.
|
|
- Inferred data shape to each input and output data variables. To uncertain dimension, use -1.
|
|
|
|
2. Precautions for Data Loading and Preprocessing:
|
|
- File Handling:
|
|
- Ensure proper file encoding (e.g., UTF-8) and delimiters (e.g., CSV comma-separated).
|
|
- Combine or process multiple files if necessary.
|
|
- Data Preprocessing:
|
|
- Convert data types correctly (e.g., numeric, categorical, date parsing).
|
|
- Handle missing values appropriately (e.g., impute, drop rows/columns).
|
|
- Optimize memory usage for large datasets using techniques like downcasting or reading data in chunks if necessary.
|
|
- Domain-Specific Handling:
|
|
- Apply competition-specific preprocessing steps as needed (e.g., text tokenization, image resizing).
|
|
|
|
3. Code Standards:
|
|
- Avoid using progress bars (e.g., `tqdm`) in the implementation.
|
|
|
|
4. Notes:
|
|
- Update `DT` (data type) based on the specific competition dataset. This can include `pd.DataFrame`, `np.array`, `torch.Tensor`, etc.
|
|
- Extend domain-specific handling steps based on the competition information.
|
|
|
|
{% if latest_spec %}
|
|
5. Former Specification:
|
|
{{ latest_spec }}
|
|
You should follow the provided specifications to improve this task.
|
|
{% endif %}
|
|
|
|
|
|
|
|
Please respond with a JSON structure as follows:
|
|
{
|
|
"spec": "The function definition in code format, tailored to the Competition Information, with detailed explanations provided in the docstring."
|
|
}
|
|
|
|
feature: |-
|
|
Feature engineering specification text should adhere to the following requirements:
|
|
1. Function Interface:
|
|
- Function Name: `feat_eng`
|
|
- Parameters:
|
|
- `X` (DT): Train data to be transformed.
|
|
- `y` (DT): Train label data.
|
|
- `X_test` (DT): Test data.
|
|
- Output:
|
|
- `X_transformed` (DT): Transformed train data.
|
|
- `y_transformed` (DT): Transformed train label data.
|
|
- `X_test_transformed` (DT): Transformed test data.
|
|
- Docstring Requirements:
|
|
- Describe the purpose of the function.
|
|
- Clarify the input parameters and their data types.
|
|
- Define the structure and format of the output.
|
|
- Inferred data shape to each input and output data variables. To uncertain dimension, use -1.
|
|
|
|
2. Precautions for Feature Engineering:
|
|
- Well handle the shape of the data
|
|
- The sample size of the train data and the test data should be the same in all scenarios.
|
|
- To most of the scenario, the input shape and the output shape should be exactly the same.
|
|
- To some tabular data, you may add or remove some columns so your inferred column number may be unsure.
|
|
- Integration with Model Pipeline
|
|
- If feature engineering is strictly part of the model pipeline, state explicitly that it will be handled at the model stage.
|
|
- If integrated here, ensure this function applies all required transformations while avoiding data leakage.
|
|
- General Considerations:
|
|
- Ensure scalability for large datasets.
|
|
- Handle missing values and outliers appropriately (e.g., impute, remove, or replace).
|
|
- Ensure consistency between feature data types and transformations.
|
|
- Avoid data leakage: Only use features derived from training data, excluding information from test or validation sets.
|
|
- Domain-Specific Features:
|
|
- Apply logic for competition-specific features (e.g., text vectorization, image augmentations, categorical encoding).
|
|
|
|
3. Code Standards:
|
|
- Avoid using progress bars (e.g., `tqdm`) in the implementation.
|
|
|
|
4. Notes:
|
|
- Align `DT` (data type) definitions with those in the Data Loader specification.
|
|
- Extend or adjust domain-specific transformations based on competition requirements.
|
|
- The device has GPU support, so you can use it for feature engineering if necessary to accelerate the process.
|
|
- Multi processing or parallel processing can be used to speed up the feature engineering process.
|
|
|
|
{% if latest_spec %}
|
|
5. Former Specification:
|
|
{{ latest_spec }}
|
|
You should follow the provided specifications to improve this task.
|
|
{% endif %}
|
|
|
|
Please respond with a JSON structure as follows:
|
|
{
|
|
"spec": "The function definition in code format, tailored to the Competition Information, with detailed explanations provided in the docstring."
|
|
}
|
|
|
|
model: |-
|
|
Model building specification text should adhere to the following requirements:
|
|
|
|
1. Function Interface:
|
|
- Function Name: `model_workflow`
|
|
- Parameters:
|
|
- `X` (DT): Training feature data.
|
|
- `y` (DT): Training label data.
|
|
- `val_X` (Optional[DT]): Validation feature data.
|
|
- `val_y` (Optional[DT]): Validation label data.
|
|
- `test_X` (Optional[DT]): Test feature data.
|
|
- `hyper_params` (dict): Dictionary of hyperparameters for model configuration.
|
|
- Output:
|
|
- `pred_val` (Optional[DT]): Predictions on validation data.
|
|
- `pred_test` (Optional[DT]): Predictions on test data.
|
|
- `hyper_params` (dict): Updated dictionary of hyperparameters after training.
|
|
- Docstring Requirements:
|
|
- Describe the purpose of the function.
|
|
- Clarify the input parameters and their data types.
|
|
- Define the structure and format of the output.
|
|
- Inferred data shape to each input and output data variables. To uncertain dimension, use -1.
|
|
|
|
2. Code Standards:
|
|
- Avoid using progress bars (e.g., `tqdm`) in the implementation.
|
|
|
|
3. Precautions:
|
|
- Ensure input arrays (`X`, `y`, `val_X`, `val_y`, `test_X`) have consistent dimensions and shapes.
|
|
- Use default values for hyperparameters if `hyper_params` is not provided.
|
|
- Train the model on `X` and `y`.
|
|
- Evaluate the model using `val_X` and `val_y` if validation data is available.
|
|
- If `test_X` is provided, generate predictions for it.
|
|
- Do not use progress bars (e.g., `tqdm`) in the implementation.
|
|
|
|
4. Notes:
|
|
- Align `DT` (data type) with the definitions used in Feature Engineering specifications.
|
|
- The device has GPU support, so you can use it for training if necessary to accelerate the process.
|
|
|
|
{% if latest_spec %}
|
|
5. Former Specification:
|
|
{{ latest_spec }}
|
|
You should follow the provided specifications to improve this task.
|
|
{% endif %}
|
|
|
|
Please respond in the following JSON format:
|
|
{
|
|
"spec": "The function definition in code format, tailored to the Competition Information, with detailed explanations provided in the docstring."
|
|
}
|
|
|
|
ensemble: |-
|
|
Ensemble specification text adhere to the following requirements:
|
|
1. Function Interface:
|
|
- Function Name: `ens_and_decision`
|
|
- Parameters:
|
|
- `test_preds_dict` (Dict[str, DT]): A dictionary of test predictions from different models. The key is the model file name.
|
|
- `val_preds_dict` (Dict[str, DT]): A dictionary of validation predictions from different models. The key is the model file name.
|
|
- `val_label` (DT): Validation label.
|
|
- Output:
|
|
- `final_pred` (DT): Ensemble prediction for the test data.
|
|
- Docstring Requirements:
|
|
- Describe the purpose of the function.
|
|
- Clarify the input parameters and their data types.
|
|
- Define the structure and format of the output.
|
|
- Inferred data shape to each input and output data variables. To uncertain dimension, use -1.
|
|
|
|
2. Precautions:
|
|
- Validation of Inputs:
|
|
- Ensure all predictions in `test_preds_dict` and `val_preds_dict` have consistent shapes and dimensions.
|
|
- Verify that `val_label` is provided and matches the length of `val_preds_dict` predictions.
|
|
- Handle empty or invalid inputs gracefully with appropriate error messages.
|
|
- You should calculate the metric for each model and ensemble strategy, and save the results in `scores.csv`, e.g.:
|
|
```python
|
|
scores = {}
|
|
for model_name, val_pred in val_preds_dict.items():
|
|
scores[model_name] = calculate_metric(val_label, val_pred)
|
|
|
|
... some code about ensemble strategy ...
|
|
ensemble_score = calculate_metric(val_label, ensemble_pred)
|
|
scores[<ensemble_strategy_name>] = ensemble_score
|
|
|
|
scores_df = pd.DataFrame(scores.items(), columns=['Model', <metric_name>])
|
|
scores_df.to_csv("scores.csv", index=False)
|
|
```
|
|
- Consensus Strategy:
|
|
- Clearly define how the ensemble predictions are aggregated (e.g., majority voting, weighted average).
|
|
- Avoid introducing biases or overfitting during decision-making.
|
|
|
|
3. Code Standards:
|
|
- Avoid using progress bars (e.g., `tqdm`) in the implementation.
|
|
|
|
4. Notes:
|
|
- Align `DT` (data type) definitions with those used in model specifications.
|
|
- Ensure flexibility to handle multiple ensemble strategies based on competition requirements.
|
|
|
|
{% if latest_spec %}
|
|
5. Former Specification:
|
|
{{ latest_spec }}
|
|
You should follow the provided specifications to improve this task.
|
|
{% endif %}
|
|
|
|
Please respond in the following JSON format:
|
|
{
|
|
"spec": "The function definition in code format, tailored to the Competition Information, with detailed explanations provided in the docstring."
|
|
}
|
|
|
|
workflow: |-
|
|
Your task is to implement the main workflow script (`main.py`) for a Kaggle-style machine learning competition project.
|
|
Follow the provided project structure and specifications to ensure consistency and maintainability:
|
|
1. Workflow Integration:
|
|
- Integrate the following components into the workflow:
|
|
- Data loading (`load_data.py`).
|
|
- Feature engineering (`feature.py`).
|
|
- Model workflow for training and testing (`model_*.py`).
|
|
- Ensemble and decision-making (`ensemble.py`).
|
|
- Treat each component as a modular and callable Python function.
|
|
2. Feature Engineering
|
|
- The feature engineering should be called only once. For example:
|
|
`X_transformed, y_transformed, X_test_transformed = feat_eng(X, y, X_test)`
|
|
- It should be called before dataset splitting.
|
|
|
|
3. Dataset Splitting
|
|
- The dataset returned by `load_data` is not split into training and testing sets, so the dataset splitting should happen after calling `feat_eng`.
|
|
- By default, split the dataset into 80% for training and 20% for testing.
|
|
- You can also use cross-validation or other splitting methods as you deem more useful and appropriate based on the Competition Information.
|
|
|
|
4. Submission File:
|
|
- Save the final predictions as `submission.csv` in the format required by the competition.
|
|
- Present the required submission format explicitly and ensure the output adheres to it.
|
|
|
|
5. Code Standards:
|
|
- Use consistent naming conventions and type annotations.
|
|
- Document the workflow with clear comments and docstring.
|
|
- Do not use progress bars (e.g., tqdm) in the code.
|
|
|
|
6. Ensemble Strategy:
|
|
Put all the model's return into a dict, using the model file name as key, and the return as value.
|
|
Sample code:
|
|
{% raw %}
|
|
{% for mn in model_names %}
|
|
from {{mn}} import model_workflow as {{mn}}_workflow
|
|
val_preds_dict["{{mn}}"], test_preds_dict["{{mn}}"], _ = {{mn}}_workflow(
|
|
X=train_X,
|
|
y=train_y,
|
|
val_X=val_X,
|
|
val_y=val_y,
|
|
test_X=test_X
|
|
)
|
|
{% endfor %}
|
|
final_pred = ens_and_decision(test_preds_dict, val_preds_dict, val_y)
|
|
{% endraw %}
|
|
|
|
{% if latest_spec %}
|
|
5. Former Specification:
|
|
{{ latest_spec }}
|
|
You should follow the provided specifications to improve this task.
|
|
{% endif %}
|
|
|
|
Please response the specification in the following json format. Here is an example structure for the JSON output:
|
|
{
|
|
"spec": "The corresponding specification string as described above. You should create the rules based on the competition information instead of copying the requirements."
|
|
}
|
|
|
|
data_loader_coder:
|
|
system: |-
|
|
You are a Python data scientist working on a new project. This project will be used to analyze data and build models to predict future outcomes, and this project codes will be written by GPT.
|
|
Your task is described below:
|
|
{{ task_desc }}
|
|
You should follow the provided specifications to complete this task.
|
|
You need to write the corresponding data loading code based on the information provided in the user's Data Folder Description, rather than relying on any suggestions that might exist in the spec.
|
|
|
|
Notice, the data files are stored in the data folder located at `/kaggle/input/`, and the data folder is structured as described in the Data Folder Description. Please don't load the data from the current directory.
|
|
|
|
Please response the code in the following json format. Here is an example structure for the JSON output:
|
|
{
|
|
"code": "The Python code as a string."
|
|
}
|
|
|
|
{% if queried_similar_successful_knowledge|length != 0 or queried_former_failed_knowledge|length != 0 %}
|
|
-----------Here is the relevant information for this task-----------
|
|
{% endif %}
|
|
{% if queried_similar_successful_knowledge|length != 0 %}
|
|
--------------Successful Implementations for Similar Models:--------------
|
|
====={% for similar_successful_knowledge in queried_similar_successful_knowledge %} Model {{loop.index}}:=====
|
|
{{ similar_successful_knowledge.target_task.get_task_information() }}
|
|
=====Code:=====
|
|
{{ similar_successful_knowledge.implementation.all_codes }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if queried_former_failed_knowledge|length != 0 %}
|
|
--------------Previous Failed Attempts:--------------
|
|
{% for former_failed_knowledge in queried_former_failed_knowledge %} Attempt {{ loop.index }}:
|
|
=====Code:=====
|
|
{{ former_failed_knowledge.implementation.all_codes }}
|
|
=====Feedback:=====
|
|
{{ former_failed_knowledge.feedback }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
user: |-
|
|
---------Competition Information---------
|
|
{{ competition_info }}
|
|
|
|
---------Data Loader Specification---------
|
|
{{ data_loader_spec }}
|
|
|
|
---------Data Folder Description---------(All path are relative to the data folder)
|
|
{{ folder_spec }}
|
|
|
|
{% if latest_code %}
|
|
---------Former code---------
|
|
{{ latest_code }}
|
|
{% if latest_code_feedback is not none %}
|
|
---------Feedback to former code---------
|
|
{{ latest_code_feedback }}
|
|
{% endif %}
|
|
The former code has some errors, you should write the correct code based on the former code. Avoid writing the same code to former code.
|
|
{% endif %}
|
|
|
|
You should strictly follow the function interface specifications provided by the specification to implement the function.
|
|
|
|
|
|
data_loader_eval:
|
|
system: |-
|
|
You are data scientist writing some data loader code for a Kaggle-style machine learning competition project.
|
|
The main code generation task is as follows:
|
|
{{task_desc}}
|
|
|
|
The data loader code is in a file named "load_data.py":
|
|
```python
|
|
{{code}}
|
|
```
|
|
|
|
You are testing the data_loader with the following code
|
|
```python
|
|
{{test_code}}
|
|
```
|
|
|
|
You'll be given the stdout of your testing scripts.
|
|
Please respond with your feedback in the following JSON format and order
|
|
```json
|
|
{
|
|
"execution": "Describe how well the data loader executed, including any errors or issues encountered. Please keep the error message and tracking information",
|
|
"return_checking": "Detail the checks performed on the data loaded, including data integrity and correctness.",
|
|
"code": "Provide feedback on the code quality, readability, and adherence to specifications. Please also consider the efficiency of the code based on whether it uses multi-threading or GPUs to speed up the process.",
|
|
"final_decision": <true/false>
|
|
}
|
|
```
|
|
user: |-
|
|
```
|
|
{{stdout}}
|
|
```
|