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
"[SOLVED] How to set macros via Java code?"
Hi, I have a small Java app that runs a RapidMiner 5.3 process and it is working pretty well.
Recently, we added the ability to set macro values via the RapidMiner command line and now I need to add support for setting the macro values to my Java code and can't seem to find how to do that. I would think this should be relatively simple to do. Does any example code snippets exist?
Following is a snippet of my current RapidMiner related code:
Pete
Recently, we added the ability to set macro values via the RapidMiner command line and now I need to add support for setting the macro values to my Java code and can't seem to find how to do that. I would think this should be relatively simple to do. Does any example code snippets exist?
Following is a snippet of my current RapidMiner related code:
Thanks for any guidance or suggestions.
RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE);
RapidMiner.init();
Process rm5 = new Process(new File("/home/petes/Documents/NewRmRepository/FindObjectsStep3Clusters.rmp"));
rm5.run();
Pete
0
Answers
yes, I know we can set the macros from the command and we use that a lot now. You could consider my app a wrapper of sorts around the command line executions for several RapidMiner processes that should be executed in a specific order and we run them via cron daily. A gross oversimplification but some context for what I am doing here.
thanks again
Happy hacking!
Marcin
We have heard RapidAnalytics does most of what I really want to do and I have that on my task list to trial in the near future. I do understand the licensing considerations and in our current state, researching practical uses for our analytics, this is used internally by my team. Depending on our results and our trial of RapidAnalytics, this code my never see broad use but is a great learning experience for me in any case. ::)
In followup to your suggestion, please excuse my Java / RapidMiner ignorance, but when I added the following code: The following errors are reported via eclipse:
On the Pair to the right of = error > Pair cannot be resolved to a variable
On "query_type" error > The left-hand side of an assignment must be a variable
I suspect am missing something basic but any guidance would be appreciated.
thanks again
Pete
thanks again...
works as expected!!! ;D