🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
Merge branch 'dev' into 'dev_make_tools'
刘棒棒c76c1765efcf
diff --cc metagpt/roles/ml_engineer.pyindex b991d9329,8ad7f43c9..6b90ae9c4--- a/metagpt/roles/ml_engineer.py+++ b/metagpt/roles/ml_engineer.py@@@ -84,7 -81,7 +84,7 @@@ class MLEngineer(Role)self.plan.finish_current_task()self.working_memory.clear()- if self.use_tools or self.use_udfs:- if self.use_tools and task.task_type not in ['model_train', 'model_evaluate']:++ if (self.use_tools and task.task_type not in ['model_train', 'model_evaluate']) or self.use_udfs:success, new_code = await self._update_data_columns()if success:task.code = task.code + "\n\n" + new_code@@@ -339,12 -270,12 +340,12 @@@ if __name__ == "__main__"# requirement = f"This is a medical dataset with over fifty anonymized health characteristics linked to three age-related conditions. Your goal is to predict whether a subject has or has not been diagnosed with one of these conditions.The target column is Class. Perform data analysis, data preprocessing, feature engineering, and modeling to predict the target. Report f1 score on the eval data. Train data path: {data_path}/split_train.csv, eval data path: {data_path}/split_eval.csv."# data_path = f"{DATA_PATH}/santander-customer-transaction-prediction"- # requirement = f"This is a customers financial dataset. Your goal is to predict which customers will make a specific transaction in the future. The target column is target. Perform data analysis, data preprocessing, feature engineering, and modeling to predict the target. Report F1 Score on the eval data. Train data path: '{data_path}/split_train.csv', eval data path: '{data_path}/split_eval.csv' ."+ # requirement = f"This is a customers financial dataset. Your goal is to predict which customers will make a specific transaction in the future. The target column is target. Perform data analysis, data preprocessing, feature engineering, and modeling to predict the target. Report AUC Score on the eval data. Train data path: '{data_path}/split_train.csv', eval data path: '{data_path}/split_eval.csv' ."- data_path = f"{DATA_PATH}/house-prices-advanced-regression-techniques"- requirement = f"This is a house price dataset, your goal is to predict the sale price of a property based on its features. The target column is SalePrice. Perform data analysis, data preprocessing, feature engineering, and modeling to predict the target. Report RMSE between the logarithm of the predicted value and the logarithm of the observed sales price on the eval data. Train data path: '{data_path}/split_train.csv', eval data path: '{data_path}/split_eval.csv'."- save_dir = ""- # save_dir = DATA_PATH / "output" / "2023-12-14_20-40-34"+ # data_path = f"{DATA_PATH}/house-prices-advanced-regression-techniques"+ # requirement = f"This is a house price dataset, your goal is to predict the sale price of a property based on its features. The target column is SalePrice. Perform data analysis, data preprocessing, feature engineering, and modeling to predict the target. Report RMSE between the logarithm of the predicted value and the logarithm of the observed sales price on the eval data. Train data path: '{data_path}/split_train.csv', eval data path: '{data_path}/split_eval.csv'."+ # save_dir = ""+ # # save_dir = DATA_PATH / "output" / "2023-12-14_20-40-34"async def main(requirement: str = requirement, auto_run: bool = True, use_tools: bool = False, use_code_steps: bool = False, save_dir: str = ""):"""