Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ๐ต Music Feature Dataset Analysis
|
| 2 |
+
|
| 3 |
+
This repository contains an exploratory data analysis (EDA) on a music features dataset. The objective is to understand the patterns in audio features and how they relate to the user's preferences (`liked` column).
|
| 4 |
+
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
## ๐ Dataset: `data.csv`
|
| 8 |
+
|
| 9 |
+
### ๐ Features:
|
| 10 |
+
|
| 11 |
+
- `danceability`: How suitable a track is for dancing.
|
| 12 |
+
- `energy`: Intensity and activity level of a track.
|
| 13 |
+
- `key`: Musical key.
|
| 14 |
+
- `loudness`: Overall loudness in decibels (dB).
|
| 15 |
+
- `mode`: Major or minor tonality.
|
| 16 |
+
- `speechiness`: Presence of spoken words.
|
| 17 |
+
- `acousticness`: Confidence measure of whether the track is acoustic.
|
| 18 |
+
- `instrumentalness`: Predicts if a track is instrumental.
|
| 19 |
+
- `liveness`: Presence of audience in the recording.
|
| 20 |
+
- `valence`: Musical positiveness.
|
| 21 |
+
- `tempo`: BPM of the track.
|
| 22 |
+
- `duration_ms`: Track duration in milliseconds.
|
| 23 |
+
- `time_signature`: Estimated time signature.
|
| 24 |
+
- `liked`: User preference (continuous score).
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## ๐งผ Data Preprocessing
|
| 29 |
+
|
| 30 |
+
- โ
Checked for missing values.
|
| 31 |
+
- โ
Identified and removed duplicates.
|
| 32 |
+
- โ
Normalized numeric features using **Z-score**.
|
| 33 |
+
- โ
Outliers examined using box plots.
|
| 34 |
+
- โ
Computed statistical metrics: **mean**, **standard deviation**, etc.
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## ๐ Visualizations
|
| 39 |
+
|
| 40 |
+
### ๐น Missing Values
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
### ๐น Unique & Duplicated Records
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
|
| 50 |
+
---
|
| 51 |
+
|
| 52 |
+
### ๐น Z-score Normalization
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
|
| 56 |
+
---
|
| 57 |
+
|
| 58 |
+
### ๐น Top & Bottom Liked Songs
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
### ๐น Distribution Plots
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
### ๐น Danceability Histogram
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
### ๐น Mean & Standard Deviation
|
| 77 |
+
|
| 78 |
+

|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
### ๐น Correlation Heatmap
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
|
| 86 |
+
---
|
| 87 |
+
|
| 88 |
+
### ๐น Boxplots for Outlier Detection
|
| 89 |
+
|
| 90 |
+

|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## ๐ Summary
|
| 95 |
+
|
| 96 |
+
- Most features were normally distributed.
|
| 97 |
+
- Strong correlation found between **energy**, **valence**, and **liked** score.
|
| 98 |
+
- Songs with higher **danceability** and **valence** tended to have higher `liked` scores.
|
| 99 |
+
- Some features (like **key** and **mode**) had low correlation with the target variable.
|
| 100 |
+
|
| 101 |
+
---
|
| 102 |
+
|
| 103 |
+
## ๐ ๏ธ Tools Used
|
| 104 |
+
|
| 105 |
+
- `Python`
|
| 106 |
+
- `Pandas`, `NumPy`
|
| 107 |
+
- `Matplotlib`, `Seaborn`
|
| 108 |
+
- `Scikit-learn`
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## ๐ Conclusion
|
| 113 |
+
|
| 114 |
+
The analysis highlights key audio features that influence user preferences. The results may be useful for recommendation systems or user profiling based on listening history.
|
| 115 |
+
|
| 116 |
+
---
|
| 117 |
+
|