mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
Merge branch 'fix_evaluate_prediction' into 'expo'
修复预测结果没有target列名。 See merge request agents/exp_optimizer!14
This commit is contained in:
commit
63bb972f91
1 changed files with 2 additions and 1 deletions
|
|
@ -85,7 +85,8 @@ class Experimenter:
|
|||
os.makedirs(state["node_dir"], exist_ok=True)
|
||||
pred_node_path = os.path.join(state["node_dir"], f"{self.start_time}-{split}_predictions.csv")
|
||||
gt_path = os.path.join(state["datasets_dir"][f"{split}_target"])
|
||||
preds = pd.read_csv(pred_path)["target"]
|
||||
preds = pd.read_csv(pred_path)
|
||||
preds = preds[preds.columns.tolist()[0]]
|
||||
preds.to_csv(pred_node_path, index=False)
|
||||
gt = pd.read_csv(gt_path)["target"]
|
||||
metric = state["dataset_config"]["metric"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue