sujal7102003 commited on
Commit
e88dfd0
Β·
verified Β·
1 Parent(s): 8ec435d

Upload entire dataset folder

Browse files
Files changed (1) hide show
  1. README.md +61 -66
README.md CHANGED
@@ -1,98 +1,93 @@
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: `train.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 (integer from 0 to 11).
14
- - `loudness`: Overall loudness in decibels (dB).
15
- - `mode`: Major (1) or minor (0) tonality.
16
- - `speechiness`: Presence of spoken words in the track.
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 conveyed by a track.
21
- - `tempo`: Beats per minute (BPM) of the track.
22
- - `duration_ms`: Track duration in milliseconds.
23
- - `time_signature`: Estimated time signature (e.g., 3, 4, 5).
24
- - `liked`: User preference score (continuous numeric value).
 
 
 
 
25
 
26
  ---
27
 
28
  ## 🧼 Data Preprocessing
29
 
30
- - Checked for missing values and handled them.
31
- - Identified and removed duplicate records.
32
- - Normalized numeric features using **Z-score normalization**.
33
- - Examined outliers using box plots.
34
- - Computed descriptive statistics: **mean**, **standard deviation**, etc.
35
 
36
  ---
37
 
38
- ## πŸ“Š Visualizations
39
 
40
- ### Missing Values
41
 
42
- ![Missing Values](missing_values_graph.png)
 
 
 
 
 
 
 
 
 
 
43
 
44
- ### Unique & Duplicated Records
45
-
46
- ![Unique and Duplicated](unique_duplicated.png)
47
-
48
- ### Z-score Normalization
49
-
50
- ![Z-Score](zscore.png)
51
-
52
- ### Top & Bottom Liked Songs
53
-
54
- ![Top & Bottom Liked](top_bottom_liked.png)
55
-
56
- ### Distribution Plots
57
-
58
- ![Distribution](distribution.png)
59
-
60
- ### Danceability Histogram
61
-
62
- ![Danceability Histogram](danceability_histogram.png)
63
-
64
- ### Mean & Standard Deviation
65
 
66
- ![Mean and STD](mean_std_plot.png)
67
 
68
- ### Correlation Heatmap
 
 
 
69
 
70
- ![Correlation Heatmap](correlation_heatmap.png)
71
 
72
- ### Boxplots for Outlier Detection
73
 
74
- ![Boxplot](boxplot.png)
 
 
 
 
75
 
76
  ---
77
 
78
- ## πŸ“ˆ Summary
79
 
80
- - Most features are approximately normally distributed.
81
- - Strong positive correlation found between **energy**, **valence**, and the `liked` score.
82
- - Songs with higher **danceability** and **valence** tend to have higher user preference scores.
83
- - Some features (e.g., **key**, **mode**) show low correlation with the target variable.
84
 
85
  ---
86
 
87
- ## πŸ› οΈ Tools Used
88
 
89
- - Python
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
+ | ![Missing Values](missing_values_graph.png) | Heatmap of missing values |
49
+ | ![Unique and Duplicated](unique_duplicated.png) | Count of unique and duplicate rows |
50
+ | ![Z-Score](zscore.png) | Normalized feature distributions |
51
+ | ![Top & Bottom Liked](top_bottom_liked.png) | Most and least liked tracks |
52
+ | ![Distribution](distribution.png) | Histograms of key features |
53
+ | ![Danceability Histogram](danceability_histogram.png)| Focused view on `danceability` distribution |
54
+ | ![Mean and STD](mean_std_plot.png) | Feature-wise mean and standard deviation |
55
+ | ![Correlation Heatmap](correlation_heatmap.png) | Feature correlation with `liked` |
56
+ | ![Boxplot](boxplot.png) | 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