You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Nirav Patel <np...@xactlycorp.com> on 2016/10/03 21:52:57 UTC
MulticlassClassificationEvaluator how weighted precision and weighted
recall calculated
For example 3 class would it be?
weightedPrecision = ( TP1 * w1 + TP2 * w2 + TP3 * w3) / ( TP1 * w1 + TP2 *
w2 + TP3 * w3) + ( FP1 * w1 + FP2 * w2 + FP3 * w3)
where TP1..2 are TP for each class.
w1, w2.. are wight for each class based on their distribution in sample
data?
and similar for recall? How about accuracy?
Thanks!
--
[image: What's New with Xactly] <http://www.xactlycorp.com/email-click/>
<https://www.nyse.com/quote/XNYS:XTLY> [image: LinkedIn]
<https://www.linkedin.com/company/xactly-corporation> [image: Twitter]
<https://twitter.com/Xactly> [image: Facebook]
<https://www.facebook.com/XactlyCorp> [image: YouTube]
<http://www.youtube.com/xactlycorporation>