docs for v5
turicum
New Altair Community Member
Hi!
After going through the reference manual for v4.6, I realized the API for v5.0 is a bit different. I managed to understand (at least partially) how to use single operators. Could you please post an example for v5.0 equivalent to the one in Figure 7.1 (p. 671, manual for v4.6) for full processes, possibly including how to extract the result? (process.run(inputIOContainer) does not seem to return anything useful).
Even better: could you post the preliminary white paper/manual that is in preparation? (German is fine too)
Thanks!
Alex
After going through the reference manual for v4.6, I realized the API for v5.0 is a bit different. I managed to understand (at least partially) how to use single operators. Could you please post an example for v5.0 equivalent to the one in Figure 7.1 (p. 671, manual for v4.6) for full processes, possibly including how to extract the result? (process.run(inputIOContainer) does not seem to return anything useful).
Even better: could you post the preliminary white paper/manual that is in preparation? (German is fine too)
Thanks!
Alex
Tagged:
0
Answers
-
Hi,
I must admit, this is a little bit tricky:process.getRootOperator().getSubprocess(0).getInnerSinks().getPortByIndex(0).getData()
We are thinking about adding a more convenient way.
Greetings,
Sebastian
0 -
Hi Sebastian,
in the case of a single operator, I'm using the following code:
etc...
OutputPorts out = inputOperator.getOutputPorts();
Port port = out.getPortByName("output");
IOObject data = port.getAnyDataOrNull();
Is this the "official" way of accessing the port?
Thanks
Alex0 -
Hi Alex,
either that or you could access them by index.
Greetings,
Sebastian0 -
Thank you, Sebastian!
Is the way one should declare operators to RapidMiner the same in v4.6 and v5.0? (see section 6.8 and 6.9 of the RM reference, v4.6, from p. 664 on)
Cheers,
Alex0 -
Hi,
no, this is totally different for several reasons, for example the possibility of supporting multi languages. We will publish a white paper describing how to build an extension for RapidMiner 5 this or the next week.
Greetings,
Sebastian0