-
Notifications
You must be signed in to change notification settings - Fork 56
Bug in ndcg_score #52
Copy link
Copy link
Open
Description
this is the function to compute the score which is wrong.
The normalized score will be always 1 since "best" and "actual" are the same
pub fn ndcg_score(y_true: &Array, y_hat: &Array, k: i32) -> f32 {
assert!(y_true.rows() == y_hat.rows());
let best = dcg_score(y_true, y_hat, k); <------------ this is the same as
let actual = dcg_score(y_true, y_hat, k); <-------------this
actual / best
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels