AdithyaSK HF Staff commited on
Commit
74f1dad
·
verified ·
1 Parent(s): 4463574

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +55 -44
README.md CHANGED
@@ -1,48 +1,13 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: task_id
5
- dtype: string
6
- - name: question
7
- dtype: string
8
- - name: answer
9
- dtype: string
10
- - name: reward_mode
11
- dtype: string
12
- - name: atol
13
- dtype: float64
14
- - name: rtol
15
- dtype: float64
16
- - name: difficulty_level
17
- dtype: int64
18
- - name: difficulty_tier
19
- dtype: string
20
- - name: kaggle_dataset
21
- dtype: string
22
- - name: hf_bucket
23
- dtype: string
24
- - name: bucket_prefix
25
- dtype: string
26
- - name: files
27
- list: string
28
- - name: instruction
29
- dtype: string
30
- - name: source_row_id
31
- dtype: string
32
- - name: package_tier
33
- dtype: int64
34
- splits:
35
- - name: train
36
- num_bytes: 6058592
37
- num_examples: 5000
38
- - name: test
39
- num_bytes: 304849
40
- num_examples: 250
41
- - name: eval
42
- num_bytes: 174695
43
- num_examples: 144
44
- download_size: 1228811
45
- dataset_size: 6538136
46
  configs:
47
  - config_name: default
48
  data_files:
@@ -53,3 +18,49 @@ configs:
53
  - split: eval
54
  path: data/eval-*
55
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - question-answering
5
+ - table-question-answering
6
+ tags:
7
+ - data-analysis
8
+ - agent
9
+ - reinforcement-learning
10
+ - code-agent
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  configs:
12
  - config_name: default
13
  data_files:
 
18
  - split: eval
19
  path: data/eval-*
20
  ---
21
+
22
+ # data_agent
23
+
24
+ Plain, Harbor-free version of the data-analysis agent tasks — usable directly via `load_dataset`.
25
+ Splits: **train 5000**, **test 250**, **eval 144**. Deterministic grading, no LLM judge.
26
+
27
+ ## Columns
28
+ - `task_id`, `source_row_id` — ids
29
+ - `question` — the question to answer
30
+ - `answer` — gold answer; `reward_mode` (`numeric`/`exact_short`/`exact_bool`/`list`/`list_csv`/`flexible`), `atol`/`rtol` — how to grade
31
+ - `difficulty_level` (1-5), `difficulty_tier` (easy/medium/hard)
32
+ - `kaggle_dataset` — source Kaggle dataset
33
+ - `hf_bucket`, `bucket_prefix` — where the input files live on the HF Hub (fetch without Harbor)
34
+ - `files` — input filenames; `instruction` — the full agent prompt
35
+ - `package_tier`
36
+
37
+ ## Usage
38
+ ```python
39
+ from datasets import load_dataset
40
+ ds = load_dataset("AdithyaSK/data_agent", split="train")
41
+ row = ds[0]
42
+ print(row["question"], row["answer"], row["reward_mode"])
43
+ ```
44
+
45
+ ## Getting the data files (no Harbor needed)
46
+ Files live in the HF bucket `hf_bucket` under `bucket_prefix/`:
47
+ ```python
48
+ from huggingface_hub import HfApi
49
+ api = HfApi()
50
+ api.snapshot_download(repo_id=row["hf_bucket"], repo_type="dataset",
51
+ allow_patterns=f"{row['bucket_prefix']}/*", local_dir="input")
52
+ ```
53
+
54
+ ## Grading (deterministic, no LLM)
55
+ Use the bundled `grader.py`:
56
+ ```python
57
+ from grader import grade
58
+ r = grade(row["answer"], my_prediction, reward_mode=row["reward_mode"],
59
+ abs_tol=row["atol"], rel_tol=row["rtol"])
60
+ print(r.reward) # 1.0 if correct
61
+ ```
62
+ Tiers: exact -> numeric(atol/rtol) -> list/percent normalization -> symbolic (math-verify).
63
+
64
+ ## Companion datasets
65
+ - Harbor task suites (to run as environments via OpenEnv): `AdithyaSK/data_agent_harbor_{train,test,eval}`
66
+ - SFT traces: `AdithyaSK/data_agent_harbor_train_sft`