Upload entire dataset folder
Browse files
README.md
CHANGED
|
@@ -1,98 +1,93 @@
|
|
| 1 |
# π΅ Music Feature Dataset Analysis
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
---
|
| 6 |
|
| 7 |
-
## π Dataset: `train.csv`
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
---
|
| 27 |
|
| 28 |
## π§Ό Data Preprocessing
|
| 29 |
|
| 30 |
-
-
|
| 31 |
-
-
|
| 32 |
-
- Normalized numeric features using **Z-score normalization
|
| 33 |
-
-
|
| 34 |
-
- Computed
|
| 35 |
|
| 36 |
---
|
| 37 |
|
| 38 |
-
## π
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-

|
| 47 |
-
|
| 48 |
-
### Z-score Normalization
|
| 49 |
-
|
| 50 |
-

|
| 51 |
-
|
| 52 |
-
### Top & Bottom Liked Songs
|
| 53 |
-
|
| 54 |
-

|
| 55 |
-
|
| 56 |
-
### Distribution Plots
|
| 57 |
-
|
| 58 |
-

|
| 59 |
-
|
| 60 |
-
### Danceability Histogram
|
| 61 |
-
|
| 62 |
-

|
| 63 |
-
|
| 64 |
-
### Mean & Standard Deviation
|
| 65 |
|
| 66 |
-
|
| 67 |
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
---
|
| 77 |
|
| 78 |
-
##
|
| 79 |
|
| 80 |
-
|
| 81 |
-
-
|
| 82 |
-
-
|
| 83 |
-
-
|
| 84 |
|
| 85 |
---
|
| 86 |
|
| 87 |
-
##
|
| 88 |
|
| 89 |
-
|
| 90 |
-
- pandas, numpy
|
| 91 |
-
- matplotlib, seaborn
|
| 92 |
-
- scikit-learn
|
| 93 |
|
| 94 |
---
|
| 95 |
|
| 96 |
-
## π Conclusion
|
| 97 |
-
|
| 98 |
-
This analysis highlights key audio features influencing user preferences. These insights may be useful for music recommendation systems or user profiling based on listening history.
|
|
|
|
| 1 |
# π΅ Music Feature Dataset Analysis
|
| 2 |
|
| 3 |
+
Welcome to the Exploratory Data Analysis (EDA) of a music feature dataset. This project aims to uncover insights into how audio features of songs influence user preferences, using the `liked` column as the target variable.
|
| 4 |
|
| 5 |
---
|
| 6 |
|
| 7 |
+
## π Dataset Overview: `train.csv`
|
| 8 |
+
|
| 9 |
+
This dataset contains various musical/audio features for tracks, along with a `liked` score representing user preference.
|
| 10 |
+
|
| 11 |
+
### πΌ Features Description
|
| 12 |
+
|
| 13 |
+
| Feature | Description |
|
| 14 |
+
|-------------------|------------------------------------------------------------------------|
|
| 15 |
+
| `danceability` | Suitability of a track for dancing. |
|
| 16 |
+
| `energy` | Intensity and activity level of the track. |
|
| 17 |
+
| `key` | Musical key as an integer (0 to 11). |
|
| 18 |
+
| `loudness` | Overall loudness in decibels (dB). |
|
| 19 |
+
| `mode` | Tonality: major (1) or minor (0). |
|
| 20 |
+
| `speechiness` | Presence of spoken words in the track. |
|
| 21 |
+
| `acousticness` | Likelihood the track is acoustic. |
|
| 22 |
+
| `instrumentalness`| Predicts whether a track contains no vocals. |
|
| 23 |
+
| `liveness` | Presence of an audience in the recording. |
|
| 24 |
+
| `valence` | Positiveness conveyed by the music. |
|
| 25 |
+
| `tempo` | Tempo in beats per minute (BPM). |
|
| 26 |
+
| `duration_ms` | Duration of the track in milliseconds. |
|
| 27 |
+
| `time_signature` | Estimated time signature (usually 3, 4, or 5). |
|
| 28 |
+
| `liked` | User preference score (continuous numerical value). |
|
| 29 |
|
| 30 |
---
|
| 31 |
|
| 32 |
## π§Ό Data Preprocessing
|
| 33 |
|
| 34 |
+
- β
Handled missing values
|
| 35 |
+
- β
Removed duplicates
|
| 36 |
+
- β
Normalized numeric features using **Z-score normalization**
|
| 37 |
+
- β
Detected outliers using box plots
|
| 38 |
+
- β
Computed summary statistics (mean, std, etc.)
|
| 39 |
|
| 40 |
---
|
| 41 |
|
| 42 |
+
## π Visual Analysis
|
| 43 |
|
| 44 |
+
Visualizations included in the analysis:
|
| 45 |
|
| 46 |
+
| Visualization | Description |
|
| 47 |
+
|----------------------------------|----------------------------------------------|
|
| 48 |
+
|  | Heatmap of missing values |
|
| 49 |
+
|  | Count of unique and duplicate rows |
|
| 50 |
+
|  | Normalized feature distributions |
|
| 51 |
+
|  | Most and least liked tracks |
|
| 52 |
+
|  | Histograms of key features |
|
| 53 |
+
| | Focused view on `danceability` distribution |
|
| 54 |
+
|  | Feature-wise mean and standard deviation |
|
| 55 |
+
|  | Feature correlation with `liked` |
|
| 56 |
+
|  | Outlier detection via box plots |
|
| 57 |
|
| 58 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
+
## π Key Findings
|
| 61 |
|
| 62 |
+
- πΉ Features like `energy`, `valence`, and `danceability` have **positive correlation** with the `liked` score.
|
| 63 |
+
- πΉ Features like `key` and `mode` show **low or no correlation** with user preference.
|
| 64 |
+
- πΉ Most features are approximately **normally distributed**.
|
| 65 |
+
- πΉ Tracks that are **highly energetic, positive, and danceable** are generally more liked.
|
| 66 |
|
| 67 |
+
---
|
| 68 |
|
| 69 |
+
## π οΈ Tools & Libraries Used
|
| 70 |
|
| 71 |
+
- **Language**: Python π
|
| 72 |
+
- **Libraries**:
|
| 73 |
+
- `pandas`, `numpy` for data handling
|
| 74 |
+
- `matplotlib`, `seaborn` for visualizations
|
| 75 |
+
- `scikit-learn` for preprocessing
|
| 76 |
|
| 77 |
---
|
| 78 |
|
| 79 |
+
## π Conclusion
|
| 80 |
|
| 81 |
+
This analysis helps identify which audio features most impact user preferences. These insights can guide the development of:
|
| 82 |
+
- π§ Music recommendation systems
|
| 83 |
+
- π User behavior models
|
| 84 |
+
- π€ Feature engineering in ML projects
|
| 85 |
|
| 86 |
---
|
| 87 |
|
| 88 |
+
## π€ Author
|
| 89 |
|
| 90 |
+
**Sujal Thakkar**
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
---
|
| 93 |
|
|
|
|
|
|
|
|
|