# Is there a way to assure in Random Forest Predictor, ROC Curves, that the desired parameters appear?

**URL:** <https://forum.knime.com/t/is-there-a-way-to-assure-in-random-forest-predictor-roc-curves-that-the-desired-parameters-appear/70848>\
**Category:** Cheminformatics\
**Created:** [July 20, 2023, 3:19pm UTC](https://forum.knime.com/t/is-there-a-way-to-assure-in-random-forest-predictor-roc-curves-that-the-desired-parameters-appear/70848 "2023-07-20T15:19:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fath1](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fath1](https://forum.knime.com/u/fath1)\
**Post date:** [July 20, 2023, 3:19pm UTC](https://forum.knime.com/t/is-there-a-way-to-assure-in-random-forest-predictor-roc-curves-that-the-desired-parameters-appear/70848/1 "2023-07-20T15:19:49Z")

</div>

I am working on a QSAR in KNIME, and as a part of the quality assurance of the machine learning model, I would like to generate an ROC Curve after the Random Forest Predictor node. I have tried many ways of configuring it so that the prediction column in the ROC Curve will show activity (Prediction) when the target column is activity. For some reason I am completely unable to have the desired column appear. Would someone be able to help me trouble shout this problem?  
[Random Forest.knar.knwf](https://forum.knime.com/uploads/short-url/4oeXAUY3SSMscRGQpOt6UE3pRn0.knwf) (71.0 KB)

---

<div class="post-metadata">

**Author:** ![gcincilla](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gcincilla/32/41083_2.png) [@gcincilla](https://forum.knime.com/u/gcincilla)\
**Post date:** [July 24, 2023, 4:39pm UTC](https://forum.knime.com/t/is-there-a-way-to-assure-in-random-forest-predictor-roc-curves-that-the-desired-parameters-appear/70848/2 "2023-07-24T16:39:50Z")

</div>

Hi @fath1,  
I can try to have a look at your workflow but unfortunately the data is not included. Could you please share ta modified version of the workflow that read the input data file from the workflow’s data directory? Alternatively, you may want to share your workflow with the 2 File Reader nodes in the executed state. That will also work fine.  
Thanks  
gio

---

<div class="post-metadata">

**Author:** ![fath1](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fath1](https://forum.knime.com/u/fath1)\
**Post date:** [July 24, 2023, 7:36pm UTC](https://forum.knime.com/t/is-there-a-way-to-assure-in-random-forest-predictor-roc-curves-that-the-desired-parameters-appear/70848/3 "2023-07-24T19:36:51Z")

</div>

[test\_data.csv](https://forum.knime.com/uploads/short-url/bI0DcktEiOoX84R0UU0c4JhQpAX.csv) (57.1 KB)  
[training\_data.csv](https://forum.knime.com/uploads/short-url/w7F37F7EGk4zfmrYJK7xCVTTkPg.csv) (1018.2 KB)

I was able to upload the data files. Now to check it, the “file reader” node will simply need to be replaced with the “csv reader” node. Thank you very much for any help you’ll be able to provide.

---

<div class="post-metadata">

**Author:** ![gcincilla](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gcincilla/32/41083_2.png) [@gcincilla](https://forum.knime.com/u/gcincilla)\
**Post date:** [July 26, 2023, 3:31pm UTC](https://forum.knime.com/t/is-there-a-way-to-assure-in-random-forest-predictor-roc-curves-that-the-desired-parameters-appear/70848/4 "2023-07-26T15:31:57Z")

</div>

Hi @fath1,  
I’ve downloaded and plugged your training and test data files but I’m having an error while running the workflow. Can you please upload a new, non-reset version of the workflow? I don’t think it will be to big in size.

To do that:

[Right click on the workflow to export] → _Export KNIME workflow…_ → [Unselect the option named “_Reset Workflow(s) before export_” → _Finish_.

Cheers,  
Gio

---

<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:** [October 24, 2023, 3:32pm UTC](https://forum.knime.com/t/is-there-a-way-to-assure-in-random-forest-predictor-roc-curves-that-the-desired-parameters-appear/70848/5 "2023-10-24T15:32:57Z")

</div>

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