[SOLVED]Binary2MultiClassModel.startNonECOCProcess encountered
jaysonpryde
New Altair Community Member
Hi,
I am using an "SVM" operator inside a "Polynomial by Binomial" operator on the RMPs that I've created recently. The RMPs are dedicated for validation, model creation and model application of the classification model I've created. Using the rapidMiner UI, I am having no problems and the expected results are seen. However, when I created a Java implementation of this, I am receiving the exception below:
Your ideas are greatly appreciated. Thanks!
I am using an "SVM" operator inside a "Polynomial by Binomial" operator on the RMPs that I've created recently. The RMPs are dedicated for validation, model creation and model application of the classification model I've created. Using the rapidMiner UI, I am having no problems and the expected results are seen. However, when I created a Java implementation of this, I am receiving the exception below:
This is the snippet code:
Exception in thread "main" java.lang.NullPointerException
at com.rapidminer.operator.learner.meta.Binary2MultiClassModel.startNonECOCProcess(Binary2MultiClassModel.java:164)
at com.rapidminer.operator.learner.meta.Binary2MultiClassModel.performPrediction(Binary2MultiClassModel.java:273)
at com.rapidminer.operator.learner.PredictionModel.apply(PredictionModel.java:76)
at com.rapidminer.operator.ModelApplier.doWork(ModelApplier.java:100)
at com.rapidminer.operator.Operator.execute(Operator.java:833)
at com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
at com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:709)
at com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:379)
at com.rapidminer.operator.Operator.execute(Operator.java:833)
at com.rapidminer.Process.run(Process.java:925)
at com.rapidminer.Process.run(Process.java:848)
at com.rapidminer.Process.run(Process.java:807)
at com.rapidminer.Process.run(Process.java:802)
at com.rapidminer.Process.run(Process.java:792)
at fringe.classifyPEh.Classifier.classifyBasedOnRMP(Classifier.java:268)
at fringe.classifyPEh.ClassifyPE.main(ClassifyPE.java:28)
From the stacktrace, it's quite obvious that this is related to Polynomial by Binomial Classification operator. My question is what caused it? Did i forget something in the snippet code? As mentioned, it's working fine using the rapidminer UI.
Process process = new Process(new File(<rmpfile>));
Operator csv = process.getOperator("readCSV");
csv.setParameter("column_separators", ",");
csv.setParameter("csv_file", testData);
csv.setParameter("first_row_as_names", "true");
/* Set model file parameter for the Read Model Operator */
Operator model = process.getOperator("readModel");
model.setParameter("model_file", <model_file>);
/* Run process and retrieve predicted labels and confidences */
IOContainer cont = process.run();
Your ideas are greatly appreciated. Thanks!
0
Answers
-
Fixed...
I am not using the latest version of rapidminer.jar.
I forgot that it was updated to 5.2
thanks!0