File size: 929 Bytes
5835905
57d536b
 
 
5835905
 
57d536b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
# For reference on model card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1
# Doc / guide: https://huggingface.co/docs/hub/datasets-cards
{}
---

# Amazon Polarity 10pct

This is a direct subset of the original [Amazon Polarity](https://huggingface.co/datasets/amazon_polarity) dataset, downsampled 10pct with a random shuffle

### Dataset Summary

For quicker testing on Amazon Polarity. See https://huggingface.co/datasets/amazon_polarity for details and attributions


### Source Data
```python
from datasets import load_dataset, Dataset, DatasetDict

ds_full = load_dataset("amazon_polarity", streaming=True)
ds_train_10_pct = Dataset.from_list(list(ds_full["train"].shuffle(seed=42).take(360_000)))
ds_test_10_pct = Dataset.from_list(list(ds_full["test"].shuffle(seed=42).take(40_000)))

ds_10_pct = DatasetDict({"train": ds_train_10_pct, "test": ds_test_10_pct})
```