Sigmoid function written in python is embedded in java code
This is done using Jython.
It work as python code is executed by PythonInterpreter and it gives result to JVM that process it as java output.
Interpreter executes python file.
Set the value for arguement taken by the function in python code.
Interpreter then evaluate the function and store the result returned from the function in the variable after converting it into java.