Module cogs.helpers.recommend_enhanced

This file contains the enhanced recommendation function that uses cosine similarity to recommend songs.

Functions

def recommend_enhanced(input_songs: list) ‑> list

This function returns recommended songs based on the songs that the user selected. It uses the cosine similarity to recommend songs. It will return a list of 10 songs that are the most similar to the input songs.

Parameters

input_songs (list): List of songs that the user selected. Format as (track_name, artist_name).