This workflow showcases how the Container Input (Row) and Container Output (Row) nodes can be used to create a REST API for a workflow that can then be deployed as inference workflow to KNIME Edge. The workflow can be called via REST and classifies a transaction as fraudulent or not fraudulent.
First, it applies some pre-processing by normalizing the data. Then, it reads in an already trained model and applies it to the input data. A custom prediction threshold is applied wit a Rule Engine node to get the final prediction (true for fraud, false for not fraud). Last, the output is post-processed and made ready for the response.
When deployed to KNIME Edge, a POST request with the following JSON body can be used for testing:
{
"V1": -1.65977253845451,
"V2": 1.28590703928839,
"V3": -3.34963337176211,
"V4": 2.05070755935895,
"Amount": 5.49
}
The response will be:
{
"Prediction": true
}
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, follow @NodePit on Twitter or botsin.space/@nodepit on Mastodon.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.