Print the top predicted label and its confidence
print(“predicted label:\t{}\nconfidence:\t\t{}”
.format(top_prediction[“label”], top_prediction[“confidence”]))
If possible is there an alternative for something like this? I tried using the POST request system and that returns “missing values”, I am quite out of my depth here so any advice helps.
if the POST Request node only provides a missing value, you could either add Extract Missing Value Cause – KNIME Hub node. This might provide additional information on what went wrong with your request. Alternatively you could change log level to DEBUG and check the logs for further information. But in general, using POST Request node for this task is a reasonable choice.
I built the model using microsoft’s LOBE api and have tried importing the model into KNIME but get this error: WARN TensorFlow Network Reader 4:61 The TensorFlow version of the network “1.15.4” is newer than the runtime TensorFlow version “1.13.1”. This could lead to unexpected behaviour,
After snooping around I learned the lobe team plans on being able to export models as tensorflow2 in a future update, so figured I would wait until then for fully integrating my workflow if I can’t get the request system to work.
Currently I use KNIME for image preprocessing, then write the files to a folder (this takes a long time), then run an external tool to run the model on the folder and produce a prediction csv, then back to KNIME to score and filter the data.