🎉 🎉 RAPIDMINER 9.10 IS OUT!!! 🎉🎉

Download the latest version helping analytics teams accelerate time-to-value for streaming and IIOT use cases.

CLICK HERE TO DOWNLOAD

[SOLVED]Binary2MultiClassModel.startNonECOCProcess encountered

jaysonprydejaysonpryde Member Posts: 20  Maven
edited November 2018 in Help
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:

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)
This is the snippet code:

                       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();
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.


Your ideas are greatly appreciated. Thanks!
Tagged:

Answers

  • jaysonprydejaysonpryde Member Posts: 20  Maven
    Fixed...

    I am not using the latest version of rapidminer.jar.
    I forgot that it was updated to 5.2

    thanks!
Sign In or Register to comment.