Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -42,10 +42,28 @@ This dataset is a combination of the following datasets:
|
|
| 42 |
|
| 43 |
The main purpose is to collect the large data into one place for easy training and evaluation.
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## Dataset size
|
| 48 |
|
|
|
|
|
|
|
| 49 |
| Dataset | Train split | Test split |
|
| 50 |
|---------|-------------|------------|
|
| 51 |
| quality | 809 533 | 100 000 |
|
|
|
|
| 42 |
|
| 43 |
The main purpose is to collect the large data into one place for easy training and evaluation.
|
| 44 |
|
| 45 |
+
## Data Preparation and Transformation
|
| 46 |
+
|
| 47 |
+
### Quality Score Normalization
|
| 48 |
+
|
| 49 |
+
The dataset was enhanced with additional columns, and quality scores (n = 909 533) were normalized using Ordered Quantile normalization through the `bestNormalize` package in R. This transformation mapped original values to a standardized normal distribution, resulting in a new variable, `transformed_quality`, included in both training and test datasets to enhance statistical modeling capabilities.
|
| 50 |
+
|
| 51 |
+
### Readability Score Calculation
|
| 52 |
+
|
| 53 |
+
U.S. reading grade levels were transformed using the Box-Cox method (`bestNormalize` package) with λ = 0.8766912. A custom function standardized the results and inverted the scale to generate 'readability' scores, where higher values indicate easier readability.
|
| 54 |
+
|
| 55 |
+
The standardized Box-Cox transformation was applied to 919 663 non-missing observations, yielding the following statistics:
|
| 56 |
+
|
| 57 |
+
- λ (lambda) = 0.8766912
|
| 58 |
+
- Mean (before standardization) = 7.908629
|
| 59 |
+
- Standard deviation (before standardization) = 3.339119
|
| 60 |
+
|
| 61 |
+
These transformations improved the dataset's suitability for subsequent statistical analyses.
|
| 62 |
|
| 63 |
## Dataset size
|
| 64 |
|
| 65 |
+
The full datasets were shuffled and randomly split into `train` and `test` splits.
|
| 66 |
+
|
| 67 |
| Dataset | Train split | Test split |
|
| 68 |
|---------|-------------|------------|
|
| 69 |
| quality | 809 533 | 100 000 |
|