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
Set Role
Hi, I´m trying to run my own procces in java, the code is the following:
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);but sometimes when i run it (Not always, and if I try to run it creating another project it also works) it gives me the following problem.
RapidMiner.init();
Process p = new Process(new File("C:\\Users\\hugo\\Desktop\\ProyectoFinal\\SetRole.rmp"));
IOContainer ioResult = p.run();
// use the result(s) as needed, for example if your process just returns one ExampleSet, use this:
if (ioResult.getElementAt(0) instanceof ExampleSet) {
ExampleSet resultSet = (ExampleSet)ioResult.getElementAt(0);
IOObject o= (IOObject)resultSet;
}
Información: The parameter '<code>attribute_name</code>' is unknown for operator '<var>Set Role</var>' (<code>Set Role</code>).I know it must seems i didn´t set the name of the attribute i want to change but i did.
Mar 03, 2014 10:17:18 AM com.rapidminer.tools.WrapperLoggingHandler log
Información: No filename given for result file, using stdout for logging results!
Mar 03, 2014 10:17:18 AM com.rapidminer.Process run
Información: Process C:\Users\hugo\Desktop\ProyectoFinal\SetRole.rmp starts
Exception in thread "main" com.rapidminer.operator.UserError: The attribute '' does not exist.
at com.rapidminer.operator.preprocessing.filter.ChangeAttributeRole.setRole(ChangeAttributeRole.java:160)
at com.rapidminer.operator.preprocessing.filter.ChangeAttributeRole.apply(ChangeAttributeRole.java:143)
at com.rapidminer.operator.AbstractExampleSetProcessing.doWork(AbstractExampleSetProcessing.java:116)
at com.rapidminer.operator.Operator.execute(Operator.java:852)
at com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
at com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:711)
at com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:379)
at com.rapidminer.operator.Operator.execute(Operator.java:852)
at com.rapidminer.Process.run(Process.java:949)
at com.rapidminer.Process.run(Process.java:873)
at com.rapidminer.Process.run(Process.java:832)
at com.rapidminer.Process.run(Process.java:827)
at com.rapidminer.Process.run(Process.java:817)
at proyecto.Proyecto.main(Proyecto.java:43)
Java Result: 1
Tagged:
0
Answers
can you please post the xml of the process you are executing?
Regards,
Marco
quite strange. I have to admint that I do not know what might cause the problem I'm afraid..
Regards,
Marco
Regards.