News for hackers. Stuff that matters.
Re:Show HN: HN recommend – A recommendation engine for Hacke... by julien040 on Monday June 19, 2023 @05:15PM (#36396571)
I thought about an algorithm with weight adjustable by the user. Now, the API returns a field with the distance between the post and the query (the square of the Euclidean distance). It's used by the interface to rank results by relevance.

Perhaps I can compute a score for each story, where each field has a weight and rank the results using this score. For example, the score could be 0.2 x score + 0.1 x comments + 1/distance - timestamp/ 10^9. The stories with the highest rank would be shown first, and the weight (0.2, 0.1, 10^9) could be adjusted by the user, as some might prefer recency while others prefer popularity.

Re:Show HN: HN recommend – A recommendation engine for Hacke... by juliusgeo on Tuesday June 20, 2023 @12:18AM (#36399654)
It might be useful to pose this problem in terms of a precision vs. recall curve.