Writing Python Code in Corticon

Posted by navjot on 04-Nov-2019 19:25

Hi Guys,

Is there any way to write Python code same as we can write Java code in Corticon? I have Neutral Network implemented in Python so I want to use that in Corticon. Please let me know how can we do this? is there any library present which helps in doing this? or can we do this by implement classes?

Thanks in advance.

All Replies

Posted by James Arsenault on 05-Nov-2019 16:52

Are you trying to call Corticon from Python or the other way around (call Python from Corticon)?

If calling Corticon from Python you can certainly call it as a REST service. If you want a tighter integration you can explore Jython. It allows you to call Java code from Python. It may provide what you're looking for but it's not something we've tried ourselves.

Jim

Posted by navjot on 05-Nov-2019 17:10

I am looking to call Python code from Corticon rulesheet (extended operators) or from corticon service callout functionality.

I know that we can call java code from Corticon rulesheet (extended operators) or from corticon service callout functionality but I want the same thing for python code. if possible.

Thanks in advance.

Posted by James Arsenault on 05-Nov-2019 18:47

Sorry we can't provide much guidance on this. It's not something we've ever tried. Here's an article which explores 3 ways to call python from java, it may provide a starting point

bytes.com/.../949995-three-ways-run-python-programs-java

This thread is closed