museotoolbox.charts.PlotConfusionMatrix.add_accuracy¶
-
PlotConfusionMatrix.
add_accuracy
(thresold=50, invert_PA_UA=False, user_acc_label="User's acc.", prod_acc_label="Prod's acc.")[source]¶ Add user and producer accuracy.
- Parameters
thresold (int, default 50) – The thresold value where text will be in white instead of black.
invert_PA_UA (bool, default False) – If True, user and producer accuracy labels are switched (note that it does not reverse the confusion matrix though).
user_acc_label (str) – The user accuracy label to display. Defautl to ‘User’s acc.’
prod_acc_label (str) – The user accuracy label to display. Defautl to ‘Prod’s acc.’
Examples
>>> plot.add_accuracy()