Datasets:
docs: update README
Browse files
README.md
CHANGED
|
@@ -1,3 +1,68 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cdla-sharing-1.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cdla-sharing-1.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- music
|
| 7 |
+
- code
|
| 8 |
+
pretty_name: Spotify-YouTube Combined Ensemble Features
|
| 9 |
+
size_categories:
|
| 10 |
+
- 10K<n<100K
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Spotify–YouTube Combined Ensemble Features
|
| 14 |
+
|
| 15 |
+
A **single-table, modeling-ready** CSV that **joins Spotify track metadata**, **librosa audio features** (from matched YouTube audio), and **YouTube engagement** fields on a common key (`track_id`). Built for **ensemble / viral prediction** experiments in the *viral-content-predictor* project (e.g. `03_combined_model_training.ipynb`).
|
| 16 |
+
|
| 17 |
+
## File
|
| 18 |
+
|
| 19 |
+
| File | Role |
|
| 20 |
+
|------|------|
|
| 21 |
+
| `combined_features_cleaned.csv` | One row per track (after pipeline joins); mixed numeric, categorical encodings, and labels. |
|
| 22 |
+
|
| 23 |
+
## Typical contents (schema evolves with the pipeline)
|
| 24 |
+
|
| 25 |
+
A representative export has on the order of **~10⁴–10⁵ rows** and **~100+ columns**, including:
|
| 26 |
+
|
| 27 |
+
| Group | Examples |
|
| 28 |
+
|-------|----------|
|
| 29 |
+
| **IDs / text** | `track_id`, `track_name`, `artists` |
|
| 30 |
+
| **Spotify** | `popularity`, `loudness`, `valence`, `danceability`, `energy`, `tempo_spotify`, `speechiness`, `liveness`, `acousticness`, `instrumentalness`, one-hot `explicit_*`, `mode_*`, `time_signature_*` |
|
| 31 |
+
| **Audio (librosa)** | Spectral, MFCC, chroma, tonnetz, onset, ZCR, `tempo_librosa`, etc. |
|
| 32 |
+
| **YouTube engagement** | `view_count`, `like_count`, `comment_count`, derived rates such as `like_rate`, `comment_rate` |
|
| 33 |
+
| **Targets** | `viral` (binary), `virality_score` (or project-specific label columns) |
|
| 34 |
+
|
| 35 |
+
Exact names and counts depend on the notebook version that produced the file—inspect with:
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
import pandas as pd
|
| 39 |
+
df = pd.read_csv("combined_features_cleaned.csv", nrows=5)
|
| 40 |
+
print(df.shape[1], "columns")
|
| 41 |
+
print(df.columns.tolist())
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## Provenance
|
| 45 |
+
|
| 46 |
+
- **Assembled** from cleaned Spotify tables, **YouTube**-aligned metadata/features, and **audio feature** extractions already aligned in the project DAG.
|
| 47 |
+
- **Consumers:** `notebooks/03_combined_model_training.ipynb`, `notebooks/exploratory/explore_combined_enesmble_voting.ipynb`, etc., reading `data/processed/combined_features_cleaned.csv`.
|
| 48 |
+
|
| 49 |
+
## Modeling notes (leakage)
|
| 50 |
+
|
| 51 |
+
The table may include **YouTube engagement** columns that **directly relate** to how “viral” was defined. For many experiments those columns are **excluded from `X`** when training the viral classifier so labels are not trivially predictable—see the **exclude list** in `03_combined_model_training.ipynb`. Keep or drop columns according to your task.
|
| 52 |
+
|
| 53 |
+
## Usage
|
| 54 |
+
|
| 55 |
+
```python
|
| 56 |
+
import pandas as pd
|
| 57 |
+
|
| 58 |
+
df = pd.read_csv("combined_features_cleaned.csv")
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
## Limitations
|
| 62 |
+
|
| 63 |
+
- **Snapshot:** reflects the pipeline run that produced it, not live Spotify/YouTube.
|
| 64 |
+
- **License / rights:** comply with **CDLA-Sharing-1.0** (this card), Spotify and YouTube terms, and any third-party dataset licenses you merged.
|
| 65 |
+
|
| 66 |
+
## Citation
|
| 67 |
+
|
| 68 |
+
Cite this repository and the specific notebook revision or release tag used to build the CSV.
|