The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Hi all,
is there any way to integrate a TensorFlow script from Python into RapidMiner?
Also, is it possible to execute a complete Python file in the RapidMiner environment?
thanks a lot
You can execute Python via the Execute Python extension. So you can use Tensor via that extension.
TensorFlow recently released an initial API for Java so you could develop your own extension for RapidMiner.
Thanks Thomas. I have seen the small Python scripts integrating into a RapidMiner process. However, is it possible to convert a whole Python project into RapidMiner "blocks", in order to take advantage of RapidMiner flexibility and powerful visualization tools?
thanks again.
Yes. We have quite a few customers that use Python and R inside RapidMiner Studio and Server. If you check out the Cappius webinar, they did just that. They took R scripts and some other scripts and put them all into RapidMiner to operationalize it.
### An example of building a TensorFlow model from R using rPython #### For this script you need to # 1. Have python 2.7 installed.# 2. Install the rPython package in R.# 3. Install Google's TensorFlow library as per these instructions:# http://www.tensorflow.org/get_started/os_setup.md#binary_installation
### Here is how to setup and run a trivial TensorFlow model ###
# Load TensorFlow (I couldn't get this to work without setting sys.argv... )library(rPython)python.exec("import syssys.argv = ['']import tensorflow as tf")
# Define a "hello world" TensorFlow model adding two numberspython.exec("a = tf.constant(10)b = tf.constant(32)sum = a + b")
#Instantiate a TensorFlow session, and get the result into R.# (we need the .tolist() to convert from the result into something# that can be serialized by JSON and imported into R)python.exec("sess = tf.Session()result = sess.run(sum)")result = python.get("result.tolist()")
# Tada! print(result)## [1] 42
Thank You
Nagesh Kumar
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…