mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 10:26:32 +02:00
fix path bug
This commit is contained in:
parent
02b4f0aa13
commit
541f8a1b10
1 changed files with 2 additions and 1 deletions
|
|
@ -39,8 +39,9 @@ def node_evaluate_score_mlebench(node):
|
|||
from mlebench.registry import registry
|
||||
|
||||
competition_id = node.state["task"]
|
||||
data_dir = Path(node.state["custom_dataset_dir"]).parent.parent.parent # prepared/public/../../../
|
||||
pred_path = node.get_predictions_path("test")
|
||||
new_registry = registry.set_data_dir(Path(registry.get_data_dir()))
|
||||
new_registry = registry.set_data_dir(data_dir)
|
||||
competition = new_registry.get_competition(competition_id)
|
||||
submission = Path(pred_path)
|
||||
report = grade_csv(submission, competition).to_dict()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue