0
$\begingroup$

I've trained an RF with a binary classification task that achieves mediocre performance. However, they way it is intended to be used would have end-users look only at predictions with high scores (class 1, ranked highest by prediction score). This means I would want the ML to perform best only for say the top 20 highest scores.

Does it make sense to optimize the hyperparam tuning during crossvalidation for recall or precision at top k when using RF? How come there is only top_k_accuracy_score and not a top_k_precision_score in sklearn ?

$\endgroup$

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.