Good day all,
Is there a way to call my python code in java. The python code will be used to load my machine learning model for prediction (keras), as well as train the model. Currently, i am using process builder to run the python scripts. However, the limitation of process builder is: i need to convert the Java float array into a string to feed it to the python script, but the float array is too big to fit into the processBuilder string.
so i have a list of questions for jep users:
1. can i run a python script in java (in the python script i need to import tensorflow, numpy etc)? (if yes: I guess i will have to run the script from my python environment; how will I go about doing this then)
2. how do I feed the float arrays from java directly to the python script then take the outputs of the python script and feed it to java?
Thanks in advance for your help, if possible can you also share some working examples as I am new to java.
best regards,
Satyan