# Component "Classification Threshold Analysis" improvement suggestion

**URL:** <https://forum.knime.com/t/component-classification-threshold-analysis-improvement-suggestion/84577>\
**Category:** Community Extensions\
**Tags:** other-community-extensions\
**Created:** [November 13, 2024, 7:34am UTC](https://forum.knime.com/t/component-classification-threshold-analysis-improvement-suggestion/84577 "2024-11-13T07:34:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vitaly\_Trautwein](https://forum-cdn.knime.com/user_avatar/forum.knime.com/vitaly_trautwein/32/74803_2.png) [@Vitaly\_Trautwein](https://forum.knime.com/u/Vitaly_Trautwein)\
**Post date:** [November 13, 2024, 7:34am UTC](https://forum.knime.com/t/component-classification-threshold-analysis-improvement-suggestion/84577/1 "2024-11-13T07:34:36Z")

</div>

Hello!  
I have a suggestion to improve the ‘Classification Threshold Analysis’ component to enhance its suitability for calculating PR curve and RP curve AUC

I found " Classification Threshold Analysis" component very useful. Thanks and respect to the author ( [mlauber71](https://forum.knime.com/u/mlauber71)).

And as mlauber71 suggests in  
[Precision Recall Curve and AUC](https://forum.knime.com/t/precision-recall-curve-and-auc/28177),  
I am trying to use this component for the PR curve. However, the threshold values that the component iterates through do not include the value 1. It starts from 0 and iterates 100 times, with the final threshold value reaching 0.99.

As result PR-curve does start from (0,1).  
So, my suggestion – change number of loops from 100 to 101.

I can copy the component and do it for myself, but it would be good for other users to have all points of threshold.

Thanks.  
The component is really helpful.

---

<div class="post-metadata">

**Author:** ![Vitaly\_Trautwein](https://forum-cdn.knime.com/user_avatar/forum.knime.com/vitaly_trautwein/32/74803_2.png) [@Vitaly\_Trautwein](https://forum.knime.com/u/Vitaly_Trautwein)\
**Post date:** [November 13, 2024, 9:40am UTC](https://forum.knime.com/t/component-classification-threshold-analysis-improvement-suggestion/84577/2 "2024-11-13T09:40:23Z")

</div>

Ok. I understand the problem. Precision at threshold = 1 is undefined.  
Anyway, PR Curve looks incomplete. How to calculate AUC in this case?

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [February 11, 2025, 9:41am UTC](https://forum.knime.com/t/component-classification-threshold-analysis-improvement-suggestion/84577/3 "2025-02-11T09:41:19Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
