Commit f2424be
fix: Compatibility with huggingface_hub 1.16, numpy 2.0, and pandas 3.0 (#1971)
* fix: Use namespaced HF dataset paths for huggingface_hub >= 1.16 compatibility
huggingface_hub 1.16+ enforces that dataset repository IDs must use the
'namespace/name' format. Bare dataset names (e.g., 'hellaswag') are no
longer accepted, causing HfUriError in CI.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yoav Katz <katz@il.ibm.com>
* fix: Regenerate catalog JSONs with namespaced HF dataset paths
Run all prepare/cards scripts to update the catalog JSON files with the
full namespace/name format for HuggingFace dataset paths.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yoav Katz <katz@il.ibm.com>
* fix: Replace evaluate library with direct sklearn calls in F1MultiLabel
The evaluate library's cached f1.py uses `float(score)` on numpy arrays,
which raises TypeError with numpy >= 2.0. Bypass the evaluate wrapper and
call sklearn's f1_score/precision_score/recall_score directly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yoav Katz <katz@il.ibm.com>
* fix: Numpy 2.0 and pandas 3.0 compatibility fixes
- F1 metric: replace evaluate library wrapper with direct sklearn calls
to avoid numpy 2.0 float() TypeError on 0-d arrays
- text2sql: cast DataFrame to str before sorting to avoid pandas 3.0
TypeError when assigning string values to int64 columns
- wiki_bio: use namespaced HF dataset path (michaelauli/wiki_bio)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yoav Katz <katz@il.ibm.com>
* fix: Regenerate wiki_bio catalog JSON with namespaced HF path
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yoav Katz <katz@il.ibm.com>
* fix: Use namespaced HF path for winogrande (allenai/winogrande)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yoav Katz <katz@il.ibm.com>
---------
Signed-off-by: Yoav Katz <katz@il.ibm.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4497127 commit f2424be
91 files changed
Lines changed: 144 additions & 123 deletions
File tree
- prepare/cards
- translation/wmt
- src/unitxt
- catalog/cards
- ai2_arc
- clinc_oos
- go_emotions
- mlsum
- winogrande
- wmt
- xnli
- tests/library
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments