ben-epstein commited on
Commit
57d536b
·
1 Parent(s): 5835905

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -26
README.md CHANGED
@@ -1,29 +1,26 @@
1
  ---
2
- configs:
3
- - config_name: default
4
- data_files:
5
- - split: train
6
- path: data/train-*
7
- - split: test
8
- path: data/test-*
9
- dataset_info:
10
- features:
11
- - name: label
12
- dtype: int64
13
- - name: title
14
- dtype: string
15
- - name: content
16
- dtype: string
17
- splits:
18
- - name: train
19
- num_bytes: 163359702
20
- num_examples: 360000
21
- - name: test
22
- num_bytes: 18182813
23
- num_examples: 40000
24
- download_size: 120691325
25
- dataset_size: 181542515
26
  ---
27
- # Dataset Card for "amazon_polarity_10_pct"
28
 
29
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ # For reference on model card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1
3
+ # Doc / guide: https://huggingface.co/docs/hub/datasets-cards
4
+ {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  ---
 
6
 
7
+ # Amazon Polarity 10pct
8
+
9
+ This is a direct subset of the original [Amazon Polarity](https://huggingface.co/datasets/amazon_polarity) dataset, downsampled 10pct with a random shuffle
10
+
11
+ ### Dataset Summary
12
+
13
+ For quicker testing on Amazon Polarity. See https://huggingface.co/datasets/amazon_polarity for details and attributions
14
+
15
+
16
+ ### Source Data
17
+ ```python
18
+ from datasets import load_dataset, Dataset, DatasetDict
19
+
20
+ ds_full = load_dataset("amazon_polarity", streaming=True)
21
+ ds_train_10_pct = Dataset.from_list(list(ds_full["train"].shuffle(seed=42).take(360_000)))
22
+ ds_test_10_pct = Dataset.from_list(list(ds_full["test"].shuffle(seed=42).take(40_000)))
23
+
24
+ ds_10_pct = DatasetDict({"train": ds_train_10_pct, "test": ds_test_10_pct})
25
+ ```
26
+