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stats for `stanfordnlp/sst2`
|
| 2 |
+
|
| 3 |
+
Generated by [`dataset-stats.py`](https://github.com/tcondello/uv-scripts-colab/blob/main/recipes/dataset-stats.py) over the `train` split.
|
| 4 |
+
|
| 5 |
+
- **Total rows in split:** 67,349
|
| 6 |
+
- **Rows profiled:** 5,000
|
| 7 |
+
- **Columns:** 3
|
| 8 |
+
|
| 9 |
+
## Column overview
|
| 10 |
+
|
| 11 |
+
| column | type | kind | null % | highlights |
|
| 12 |
+
|---|---|---|---:|---|
|
| 13 |
+
| `idx` | `Value(int32)` | numeric | 0.0% | min=0.00 · p50=2,499.50 · max=4,999.00 · distinct=5000 |
|
| 14 |
+
| `sentence` | `Value(string)` | string | 0.0% | distinct=4,999 · len p50=39 · max=255 |
|
| 15 |
+
| `label` | `ClassLabel` | class_label | 0.0% | `positive`=2758 · `negative`=2242 |
|
| 16 |
+
|
| 17 |
+
## Per-column detail
|
| 18 |
+
|
| 19 |
+
### `idx`
|
| 20 |
+
|
| 21 |
+
- **type:** `Value(int32)` • **kind:** numeric • **null:** 0 / 5,000 (0.0%)
|
| 22 |
+
|
| 23 |
+
```json
|
| 24 |
+
{
|
| 25 |
+
"kind": "numeric",
|
| 26 |
+
"n": 5000,
|
| 27 |
+
"min": 0.0,
|
| 28 |
+
"p1": 49.99,
|
| 29 |
+
"p25": 1249.75,
|
| 30 |
+
"p50": 2499.5,
|
| 31 |
+
"p75": 3749.25,
|
| 32 |
+
"p99": 4949.01,
|
| 33 |
+
"max": 4999.0,
|
| 34 |
+
"mean": 2499.5,
|
| 35 |
+
"std": 1443.3756441065507,
|
| 36 |
+
"distinct": 5000
|
| 37 |
+
}
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
### `sentence`
|
| 41 |
+
|
| 42 |
+
- **type:** `Value(string)` • **kind:** string • **null:** 0 / 5,000 (0.0%)
|
| 43 |
+
|
| 44 |
+
```json
|
| 45 |
+
{
|
| 46 |
+
"kind": "string",
|
| 47 |
+
"n": 5000,
|
| 48 |
+
"distinct": 4999,
|
| 49 |
+
"len_min": 2,
|
| 50 |
+
"len_p50": 39,
|
| 51 |
+
"len_mean": 53.479,
|
| 52 |
+
"len_p99": 194,
|
| 53 |
+
"len_max": 255,
|
| 54 |
+
"top_values": [
|
| 55 |
+
{
|
| 56 |
+
"value": "unfunny ",
|
| 57 |
+
"count": 2
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"value": "hide new secretions from the parental units ",
|
| 61 |
+
"count": 1
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"value": "contains no wit , only labored gags ",
|
| 65 |
+
"count": 1
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"value": "that loves its characters and communicates something rather beautiful about human nature ",
|
| 69 |
+
"count": 1
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"value": "remains utterly satisfied to remain the same throughout ",
|
| 73 |
+
"count": 1
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"value": "on the worst revenge-of-the-nerds clichés the filmmakers could dredge up ",
|
| 77 |
+
"count": 1
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"value": "that 's far too tragic to merit such superficial treatment ",
|
| 81 |
+
"count": 1
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"value": "demonstrates that the director of such hollywood blockbusters as patriot games can still turn out a ",
|
| 85 |
+
"count": 1
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"value": "of saucy ",
|
| 89 |
+
"count": 1
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"value": "a depressed fifteen-year-old 's suicidal poetry ",
|
| 93 |
+
"count": 1
|
| 94 |
+
}
|
| 95 |
+
],
|
| 96 |
+
"samples": {
|
| 97 |
+
"shortest": "( ",
|
| 98 |
+
"median": "piece , a model of menacing atmosphere ",
|
| 99 |
+
"longest": "director george hickenlooper has had some success with documentaries , but here his sense of story and his juvenile camera movements smack of a film school undergrad , and his maudlin ending might not"
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
### `label`
|
| 105 |
+
|
| 106 |
+
- **type:** `ClassLabel` • **kind:** class_label • **null:** 0 / 5,000 (0.0%)
|
| 107 |
+
|
| 108 |
+
```json
|
| 109 |
+
{
|
| 110 |
+
"kind": "class_label",
|
| 111 |
+
"n": 5000,
|
| 112 |
+
"num_classes": 2,
|
| 113 |
+
"value_counts": [
|
| 114 |
+
{
|
| 115 |
+
"id": 1,
|
| 116 |
+
"name": "positive",
|
| 117 |
+
"count": 2758,
|
| 118 |
+
"pct": 55.16
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"id": 0,
|
| 122 |
+
"name": "negative",
|
| 123 |
+
"count": 2242,
|
| 124 |
+
"pct": 44.84
|
| 125 |
+
}
|
| 126 |
+
]
|
| 127 |
+
}
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
## Reproduce
|
| 131 |
+
|
| 132 |
+
```bash
|
| 133 |
+
INPUT_DATASET=stanfordnlp/sst2 \
|
| 134 |
+
OUTPUT_DATASET=Tim-Pinecone/sst2-stats \
|
| 135 |
+
SPLIT=train LIMIT=5000 \
|
| 136 |
+
bin/colab-hf-run recipes/dataset-stats.py
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
## Machine-readable
|
| 140 |
+
|
| 141 |
+
Per-column rows live in the dataset's `train` split: one row per column with `column`, `feature_type`, `kind`, `n_total`, `n_null`, `null_pct`, and `stats_json` (full per-kind detail).
|