The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Create operator chain model from RM file
Fireholder
Member Posts: 26 Contributor II
I want to let user upload any types of RM conf files into my app, so that I can read them and get the operators as well as parameters of each operator and let the user change the parameters.To my knowledge it would be better to create some class or data structure containing all the operator names and parameters.I know this sound very vague but it's a task I have to crack down.))
Tagged:
0
Answers
why exactly do you want to replicate RapidMiner functionality? There are well over 500 operators with up to a dozen or so parameters, sometimes depending on each other and often depending on the process/metadata. Just saying...
Regards,
Marco
could you help with, I want to found out in what structure does the process reads a file. I mean how can I know what are the operators inside the file and what are the parameters they hold?
regards,Fire
you can use the following: to retrieve all operators in a process to access the parameter values to access the parameters themself (type, possible values, default value, ...)
Regards,
Marco
Thank you for your reply.
I would like to know how to differentiate between parametertypes, for instance, I have several operators, each of them has it's own parameters and parametertypes as well. Parametertype might either be optional,when you can enter whatever value,or let's say mandatory,like those which you have to select from a combobox in GUI mode.
For example, logverbosity can be either status or init or all and so on.
Hope you've got what I mean.
Best regards, FIre
I'm not sure what you want. On your ParameterType object you can check the available methods, they will tell you everything you need to know, like getConditions(), getDefaultValue(), getDependencyConditions(), ...
If you need the actual value for the parameter in the process, you can call getParameter("name"); (or any other of its getParameterXYZ("name"); methods) on the operator object.
To see what parameter types there are, you can check out the type hierarchy of the class ParameterType in Eclipse.
Regards,
Marco