Skip to content

Commit 4b9aebd

Browse files
committed
make threshold 0.65
1 parent 18d00d3 commit 4b9aebd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/lib/generateSeedPlaylist.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export async function generateSeedPlaylist(
115115
const limit = pLimit(15);
116116

117117
// 0.6 is a good starting point, but you can tune this
118-
const THRESHOLD = 0.75
118+
const THRESHOLD = 0.65
119119

120120
// we want to avoid low quality recommendations so we check each song against all seeds(selected songs) put that into an array and sort by the number of seeds that match the treshold then return the top 100
121121
// we also want to avoid songs that are too far in similarity to the seeds so we set a cutoff of 0.2 below the threshold to give extra grace

0 commit comments

Comments
 (0)