forked from Significant-Gravitas/AutoGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add data challenges (Significant-Gravitas#5361)
Signed-off-by: Merwane Hamadi <[email protected]>
- Loading branch information
1 parent
6f289e6
commit 793ff1c
Showing
15 changed files
with
620 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
benchmark/agbenchmark/challenges/verticals/data/1_sort_csv/artifacts_in/input.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
id,name,timestamp | ||
3,Alice,2023-09-25 14:10:00 | ||
1,Bob,2023-09-24 12:05:00 | ||
2,Charlie,2023-09-24 12:10:00 | ||
4,David,2023-09-26 16:20:00 |
5 changes: 5 additions & 0 deletions
5
benchmark/agbenchmark/challenges/verticals/data/1_sort_csv/artifacts_out/output.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
id,name,timestamp | ||
1,Bob,2023-09-24 12:05:00 | ||
2,Charlie,2023-09-24 12:10:00 | ||
3,Alice,2023-09-25 14:10:00 | ||
4,David,2023-09-26 16:20:00 |
31 changes: 31 additions & 0 deletions
31
benchmark/agbenchmark/challenges/verticals/data/1_sort_csv/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"category": [ | ||
"data" | ||
], | ||
"cutoff": 60, | ||
"dependencies": [ | ||
"TestReadFile" | ||
], | ||
"eval_id": "db4654d7-fc97-4290-ab27-a710c2b5ce15", | ||
"ground": { | ||
"answer": "The csv sorted by date", | ||
"eval": { | ||
"type": "file" | ||
}, | ||
"files": [ | ||
"output.csv" | ||
], | ||
"should_contain": [ | ||
"id,name,timestamp\n1,Bob,2023-09-24 12:05:00\n2,Charlie,2023-09-24 12:10:00\n3,Alice,2023-09-25 14:10:00\n4,David,2023-09-26 16:20:00" | ||
] | ||
}, | ||
"info": { | ||
"description": "Tests if the agent can sort a csv", | ||
"difficulty": "basic", | ||
"side_effects": [ | ||
"" | ||
] | ||
}, | ||
"name": "SortCsv", | ||
"task": "Sort the input.csv by the 'timestamp' column and write the new csv in the output.csv file. The order of the columns should be preserved." | ||
} |
12 changes: 12 additions & 0 deletions
12
benchmark/agbenchmark/challenges/verticals/data/2_label_data/artifacts_in/input.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Item | ||
Banana | ||
Leaf | ||
Sky | ||
Sunflower | ||
Grass | ||
Jeans | ||
Lemon | ||
Tree | ||
Ocean | ||
Daisy | ||
Fern |
12 changes: 12 additions & 0 deletions
12
benchmark/agbenchmark/challenges/verticals/data/2_label_data/artifacts_out/output.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Item, Color | ||
Banana, Yellow | ||
Leaf, Green | ||
Sky, Blue | ||
Sunflower, Yellow | ||
Grass, Green | ||
Jeans, Blue | ||
Lemon, Yellow | ||
Tree, Green | ||
Ocean, Blue | ||
Daisy, Yellow | ||
Fern, Green |
31 changes: 31 additions & 0 deletions
31
benchmark/agbenchmark/challenges/verticals/data/2_label_data/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"category": [ | ||
"data" | ||
], | ||
"cutoff": 60, | ||
"dependencies": [ | ||
"TestSortCsv" | ||
], | ||
"eval_id": "6c58e229-aa22-4c4f-a053-4a78931ad41e", | ||
"ground": { | ||
"answer": "The csv labelled", | ||
"eval": { | ||
"type": "file" | ||
}, | ||
"files": [ | ||
"output.csv" | ||
], | ||
"should_contain": [ | ||
"Item, Color\nBanana, Yellow\nLeaf, Green\nSky, Blue\nSunflower, Yellow\nGrass, Green\nJeans, Blue\nLemon, Yellow\nTree, Green\nOcean, Blue\nDaisy, Yellow\nFern, Green" | ||
] | ||
}, | ||
"info": { | ||
"description": "Tests if the agent can sort a csv", | ||
"difficulty": "basic", | ||
"side_effects": [ | ||
"" | ||
] | ||
}, | ||
"name": "LabelData", | ||
"task": "The csv 'input.csv' has many items. create a 'Color' column for these items and classify them as either 'blue', 'green', or 'yellow' depending on what the most likely color is. Preserve the order of the rows. The color column should be the second column. Write the output in output.csv" | ||
} |
4 changes: 4 additions & 0 deletions
4
benchmark/agbenchmark/challenges/verticals/data/3_combine_csv/artifacts_in/file1.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ID,Name,Age | ||
101,John,28 | ||
102,Alice,34 | ||
103,Bob,45 |
4 changes: 4 additions & 0 deletions
4
benchmark/agbenchmark/challenges/verticals/data/3_combine_csv/artifacts_in/file2.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ID,Occupation,Salary | ||
101,Engineer,80000 | ||
102,Doctor,120000 | ||
103,Lawyer,95000 |
4 changes: 4 additions & 0 deletions
4
benchmark/agbenchmark/challenges/verticals/data/3_combine_csv/artifacts_out/output.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Age,ID,Name,Occupation,Salary | ||
28,101,John,Engineer,80000 | ||
34,102,Alice,Doctor,120000 | ||
45,103,Bob,Lawyer,95000 |
31 changes: 31 additions & 0 deletions
31
benchmark/agbenchmark/challenges/verticals/data/3_combine_csv/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"category": [ | ||
"data" | ||
], | ||
"cutoff": 60, | ||
"dependencies": [ | ||
"TestLabelData" | ||
], | ||
"eval_id": "d5f04342-983f-45a4-b84a-fe8d96863375", | ||
"ground": { | ||
"answer": "The csv data is combined", | ||
"eval": { | ||
"type": "file" | ||
}, | ||
"files": [ | ||
"output.csv" | ||
], | ||
"should_contain": [ | ||
"Age,ID,Name,Occupation,Salary\n28,101,John,Engineer,80000\n34,102,Alice,Doctor,120000\n45,103,Bob,Lawyer,95000" | ||
] | ||
}, | ||
"info": { | ||
"description": "Tests if the agent can combine data from a csv", | ||
"difficulty": "intermediate", | ||
"side_effects": [ | ||
"" | ||
] | ||
}, | ||
"name": "CombineCsv", | ||
"task": "The csvs 'file1.csv' and 'file2.csv' both have a column 'ID'. Combine these 2 csvs using the 'ID' column. Sort the rows by ID in ascending order and the columns alphabetically. Write the output in output.csv" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.