Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- README.md +21 -21
- math_dataset.py +4 -2
README.md
CHANGED
|
@@ -27,7 +27,7 @@
|
|
| 27 |
- [Citation Information](#citation-information)
|
| 28 |
- [Contributions](#contributions)
|
| 29 |
|
| 30 |
-
##
|
| 31 |
|
| 32 |
- **Homepage:** [https://github.com/deepmind/mathematics_dataset](https://github.com/deepmind/mathematics_dataset)
|
| 33 |
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
|
@@ -37,7 +37,7 @@
|
|
| 37 |
- **Size of the generated dataset:** 8656.79 MB
|
| 38 |
- **Total amount of disk used:** 133256.87 MB
|
| 39 |
|
| 40 |
-
###
|
| 41 |
|
| 42 |
Mathematics database.
|
| 43 |
|
|
@@ -55,19 +55,19 @@ train_examples, val_examples = datasets.load_dataset(
|
|
| 55 |
split=['train', 'test'],
|
| 56 |
as_supervised=True)
|
| 57 |
|
| 58 |
-
###
|
| 59 |
|
| 60 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 61 |
|
| 62 |
-
###
|
| 63 |
|
| 64 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 65 |
|
| 66 |
-
##
|
| 67 |
|
| 68 |
We show detailed information for up to 5 configurations of the dataset.
|
| 69 |
|
| 70 |
-
###
|
| 71 |
|
| 72 |
#### algebra__linear_1d
|
| 73 |
|
|
@@ -124,7 +124,7 @@ An example of 'train' looks as follows.
|
|
| 124 |
|
| 125 |
```
|
| 126 |
|
| 127 |
-
###
|
| 128 |
|
| 129 |
The data fields are the same among all splits.
|
| 130 |
|
|
@@ -148,7 +148,7 @@ The data fields are the same among all splits.
|
|
| 148 |
- `question`: a `string` feature.
|
| 149 |
- `answer`: a `string` feature.
|
| 150 |
|
| 151 |
-
###
|
| 152 |
|
| 153 |
| name | train |test |
|
| 154 |
|---------------------------|------:|----:|
|
|
@@ -158,49 +158,49 @@ The data fields are the same among all splits.
|
|
| 158 |
|algebra__linear_2d_composed|1999998|10000|
|
| 159 |
|algebra__polynomial_roots |1999998|10000|
|
| 160 |
|
| 161 |
-
##
|
| 162 |
|
| 163 |
-
###
|
| 164 |
|
| 165 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 166 |
|
| 167 |
-
###
|
| 168 |
|
| 169 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 170 |
|
| 171 |
-
###
|
| 172 |
|
| 173 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 174 |
|
| 175 |
-
###
|
| 176 |
|
| 177 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 178 |
|
| 179 |
-
##
|
| 180 |
|
| 181 |
-
###
|
| 182 |
|
| 183 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 184 |
|
| 185 |
-
###
|
| 186 |
|
| 187 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 188 |
|
| 189 |
-
###
|
| 190 |
|
| 191 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 192 |
|
| 193 |
-
##
|
| 194 |
|
| 195 |
-
###
|
| 196 |
|
| 197 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 198 |
|
| 199 |
-
###
|
| 200 |
|
| 201 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 202 |
|
| 203 |
-
###
|
| 204 |
|
| 205 |
```
|
| 206 |
|
|
|
|
| 27 |
- [Citation Information](#citation-information)
|
| 28 |
- [Contributions](#contributions)
|
| 29 |
|
| 30 |
+
## Dataset Description
|
| 31 |
|
| 32 |
- **Homepage:** [https://github.com/deepmind/mathematics_dataset](https://github.com/deepmind/mathematics_dataset)
|
| 33 |
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
|
|
|
| 37 |
- **Size of the generated dataset:** 8656.79 MB
|
| 38 |
- **Total amount of disk used:** 133256.87 MB
|
| 39 |
|
| 40 |
+
### Dataset Summary
|
| 41 |
|
| 42 |
Mathematics database.
|
| 43 |
|
|
|
|
| 55 |
split=['train', 'test'],
|
| 56 |
as_supervised=True)
|
| 57 |
|
| 58 |
+
### Supported Tasks
|
| 59 |
|
| 60 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 61 |
|
| 62 |
+
### Languages
|
| 63 |
|
| 64 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 65 |
|
| 66 |
+
## Dataset Structure
|
| 67 |
|
| 68 |
We show detailed information for up to 5 configurations of the dataset.
|
| 69 |
|
| 70 |
+
### Data Instances
|
| 71 |
|
| 72 |
#### algebra__linear_1d
|
| 73 |
|
|
|
|
| 124 |
|
| 125 |
```
|
| 126 |
|
| 127 |
+
### Data Fields
|
| 128 |
|
| 129 |
The data fields are the same among all splits.
|
| 130 |
|
|
|
|
| 148 |
- `question`: a `string` feature.
|
| 149 |
- `answer`: a `string` feature.
|
| 150 |
|
| 151 |
+
### Data Splits Sample Size
|
| 152 |
|
| 153 |
| name | train |test |
|
| 154 |
|---------------------------|------:|----:|
|
|
|
|
| 158 |
|algebra__linear_2d_composed|1999998|10000|
|
| 159 |
|algebra__polynomial_roots |1999998|10000|
|
| 160 |
|
| 161 |
+
## Dataset Creation
|
| 162 |
|
| 163 |
+
### Curation Rationale
|
| 164 |
|
| 165 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 166 |
|
| 167 |
+
### Source Data
|
| 168 |
|
| 169 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 170 |
|
| 171 |
+
### Annotations
|
| 172 |
|
| 173 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 174 |
|
| 175 |
+
### Personal and Sensitive Information
|
| 176 |
|
| 177 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 178 |
|
| 179 |
+
## Considerations for Using the Data
|
| 180 |
|
| 181 |
+
### Social Impact of Dataset
|
| 182 |
|
| 183 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 184 |
|
| 185 |
+
### Discussion of Biases
|
| 186 |
|
| 187 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 188 |
|
| 189 |
+
### Other Known Limitations
|
| 190 |
|
| 191 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 192 |
|
| 193 |
+
## Additional Information
|
| 194 |
|
| 195 |
+
### Dataset Curators
|
| 196 |
|
| 197 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 198 |
|
| 199 |
+
### Licensing Information
|
| 200 |
|
| 201 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 202 |
|
| 203 |
+
### Citation Information
|
| 204 |
|
| 205 |
```
|
| 206 |
|
math_dataset.py
CHANGED
|
@@ -18,12 +18,14 @@
|
|
| 18 |
|
| 19 |
from __future__ import absolute_import, division, print_function
|
| 20 |
|
| 21 |
-
import logging
|
| 22 |
import os
|
| 23 |
|
| 24 |
import datasets
|
| 25 |
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
_CITATION = """
|
| 28 |
@article{2019arXiv,
|
| 29 |
author = {Saxton, Grefenstette, Hill, Kohli},
|
|
@@ -267,7 +269,7 @@ class MathDataset(datasets.GeneratorBasedBuilder):
|
|
| 267 |
"""Yields examples based on directory, module file.."""
|
| 268 |
|
| 269 |
lines = self._read_data_from_all_categories(directory, config, categories)
|
| 270 |
-
|
| 271 |
questions = lines[::2]
|
| 272 |
answers = lines[1::2]
|
| 273 |
|
|
|
|
| 18 |
|
| 19 |
from __future__ import absolute_import, division, print_function
|
| 20 |
|
|
|
|
| 21 |
import os
|
| 22 |
|
| 23 |
import datasets
|
| 24 |
|
| 25 |
|
| 26 |
+
logger = datasets.logging.get_logger(__name__)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
_CITATION = """
|
| 30 |
@article{2019arXiv,
|
| 31 |
author = {Saxton, Grefenstette, Hill, Kohli},
|
|
|
|
| 269 |
"""Yields examples based on directory, module file.."""
|
| 270 |
|
| 271 |
lines = self._read_data_from_all_categories(directory, config, categories)
|
| 272 |
+
logger.info("%s: %s contains total: %d", categories, config, len(lines))
|
| 273 |
questions = lines[::2]
|
| 274 |
answers = lines[1::2]
|
| 275 |
|