Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify - Create Playlist Anomaly Detector #2469

Closed
FlorentLvr opened this issue Dec 15, 2023 · 1 comment
Closed

Spotify - Create Playlist Anomaly Detector #2469

FlorentLvr opened this issue Dec 15, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@FlorentLvr
Copy link
Contributor

Authentication:
Since we are dealing with user-specific data, we need to use SpotifyOAuth to authenticate.

Data Retrieval:
Use Spotipy and your playlist ID to fetch playlist tracks.
playlist_id = 'YOUR_PLAYLIST_ID'
results = sp.playlist_tracks(playlist_id)
tracks = results['items']

Feature Extraction:
Extract relevant features from the playlist data. In this case, we want to extract name, artist and danceability.

Anomaly Detection Algorithm
Use anomaly detection algorithm such as One-Class SVM to detect anomalies.

Threshold Setting:
Set appropriate thresholds for anomaly detection. This involves determining what level of deviation from normal behavior should be considered an anomaly.

Alerting Mechanism:
Let user know of the anomalies.
if anomalies > threshold: alert_user("Anomaly detected in your playlist!")

Visualization:
Create visualizations through time series graphs to help users understand the detected anomalies.
plot_anomalies(features, anomalies)

@FlorentLvr FlorentLvr changed the title Spotify - Playlist Anomaly Detector Spotify - Create Playlist Anomaly Detector Dec 15, 2023
@FlorentLvr FlorentLvr added the enhancement New feature or request label Dec 15, 2023
@FlorentLvr
Copy link
Contributor Author

Won't do

@FlorentLvr FlorentLvr closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants