This workflow depicts utilizing the ROC Curve node to showcase the results of one classifier and two classifiers on a plot. We utilized the "Heart Attack Analysis & Prediction Dataset" from Kaggle for this demonstration.
You can easily download and run the workflow directly in your KNIME installation. We recommend that you use the latest version of the KNIME Analytics Platform for optimal performance. It can also be deployed as a Data App in KNIME Business Hub.
In summary, we imported the dataset mentioned above. We then modified the class column values to 0 for a low chance and 1 for a high chance of having a heart attack. We also renamed all the columns using more descriptive names.
To prepare the data for the model trainer and predictor process, we utilized the "Partitioning" node. We used 80% of the sample to train the models and the remaining data to predict the probability of a heart attack.
Our data application includes a Scorer (JavaScript) node for both models and the ROC Curve view for each model. It is possible to switch between the models dynamically within the view.
URL: Heart Attack Dataset - Kaggle https://www.kaggle.com/datasets/rashikrahmanpritom/heart-attack-analysis-prediction-dataset?select=heart.csv
To use this workflow in KNIME, download it from the below URL and open it in KNIME:
Download WorkflowDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.