"java.lang.NullPointerExceptiond:when using Voting inside X-Validation"

Legacy UserLegacy User MemberPosts:0Newbie
edited June 2019 inHelp
Helllo,

I a trying to use a voting operator inside X-Validation but it fails. In the log I can find a java.lang.NullPointerException. The same happens when I use stacking as well, but only sometimes and I am not able to reproduce it now.
I am using RM 5.3.01, so the latest update.

Best,
Elena



























































<连接from_op = from_port =“朴素贝叶斯(内核)”"model" to_port="base model 4"/>





































<连接from_op = "检索mapping_locationTypeID_tags_noOutliers_ResultSet" from_port="output" to_op="Join" to_port="right"/>

















Answers

  • frasfras MemberPosts:93Contributor II
    Hi Elena,

    inside the X-Validation I found a dummy Random Forrest operator.
    Please remove and try to reproduce. If you can not this was the problem.

    -Frank
  • Legacy UserLegacy User MemberPosts:0Newbie
    Hi Frank,

    it is not dummy. It is an operator coming from the Weka extension.
  • frasfras MemberPosts:93Contributor II
    If it happens again please provide the complete Exception message.
  • Legacy UserLegacy User MemberPosts:0Newbie
    Hi the error message appearing when the process fails says:
    "The setup does not seem to contain any obvious errors, but you should check the log messages or activate the debug mode in the settings dialog in order to get more information about this problem."
    Here is the RM log:
    Dec 2, 2013 3:58:01 PM SEVERE: Process failed: operator cannot be executed. Check the log messages...
    Dec 2, 2013 3:58:01 PM SEVERE: Here: Process[1] (Process)
    subprocess 'Main Process'
    +- Retrieve mapping_locationTypeID_tags_noOutliers_ResultSet[1] (Retrieve)
    +- Retrieve ResultSet_Combined_DFKI_and_IMMI (2)[1] (Retrieve)
    +- Join[1] (Join)
    +- Set Role[1] (Set Role)
    +- Normalize[1] (Normalize)
    +- Validation[1] (X-Validation)
    subprocess 'Training'
    | +- Vote[2] (Vote)
    subprocess 'Base Learner'
    | +- W-RandomForest[2] (W-RandomForest)
    | +- Polynominal by Binominal Classification[2] (Polynominal by Binominal Classification)
    subprocess 'Learning Process'
    | | +- SVM (Linear)[6] (Support Vector Machine (Linear))
    | +- Polynominal by Binominal Classification (2)[2] (Polynominal by Binominal Classification)
    subprocess 'Learning Process'
    | | +- SVM (2)[6] (Support Vector Machine (Linear))
    ==> | +- Naive Bayes (Kernel)[2] (Naive Bayes (Kernel))
    subprocess 'Testing'
    +- Apply Model (2)[1] (Apply Model)
    +- Performance[1] (Performance (Classification))
    Dec 2, 2013 3:58:01 PM SEVERE: java.lang.NullPointerException
  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University ProfessorPosts:1,984RM Engineering
    Hi,

    can you please post the contents of the rm.log file inside the USER_HOME/.RapidMiner(5) folder?

    Regards,
    Marco
  • Legacy UserLegacy User MemberPosts:0Newbie
    This is where the error begins:
    SEVERE: Process failed: operator cannot be executed. Check the log messages...
    java.lang.NullPointerException
    at com.rapidminer.operator.learner.meta.Binary2MultiClassModel.startNonECOCProcess(Binary2MultiClassModel.java:164)
    at com.rapidminer.operator.learner.meta.Binary2MultiClassModel.performPrediction(Binary2MultiClassModel.java:278)
    at com.rapidminer.operator.learner.PredictionModel.apply(PredictionModel.java:76)
    at com.rapidminer.operator.learner.meta.AbstractStacking.learn(AbstractStacking.java:108)
    at com.rapidminer.operator.learner.meta.AbstractStacking.doWork(AbstractStacking.java:90)
    at com.rapidminer.operator.Operator.execute(Operator.java:866)
    at com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
    at com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:711)
    at com.rapidminer.operator.validation.ValidationChain.executeLearner(ValidationChain.java:214)
    at com.rapidminer.operator.validation.ValidationChain.learn(ValidationChain.java:305)
    at com.rapidminer.operator.validation.XValidation.performIteration(XValidation.java:159)
    at com.rapidminer.operator.validation.XValidation.estimatePerformance(XValidation.java:151)
    at com.rapidminer.operator.validation.ValidationChain.doWork(ValidationChain.java:273)
    at com.rapidminer.operator.Operator.execute(Operator.java:866)
    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:375)
    at com.rapidminer.operator.Operator.execute(Operator.java:866)
    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)
    在com.rapidminer.gui.ProcessThread.run(ProcessThread.java:63)

    Dec 02, 2013 11:14:39 PM com.rapidminer.gui.ProcessThread run
    SEVERE: Here: Process[1] (Process)
    subprocess 'Main Process'
    +- Retrieve mapping_locationTypeID_tags_noOutliers_ResultSet[1] (Retrieve)
    +- Retrieve ResultSet_Combined_DFKI_and_IMMI (2)[1] (Retrieve)
    +- Join[1] (Join)
    +- Set Role[1] (Set Role)
    +- Normalize[1] (Normalize)
    +- Validation[1] (X-Validation)
    subprocess 'Training'
    | +- Vote[2] (Vote)
    subprocess 'Base Learner'
    | +- Polynominal by Binominal Classification[2] (Polynominal by Binominal Classification)
    subprocess 'Learning Process'
    | | +- SVM (Linear)[6] (Support Vector Machine (Linear))
    | +- Polynominal by Binominal Classification (2)[2] (Polynominal by Binominal Classification)
    subprocess 'Learning Process'
    | | +- SVM (2)[6] (Support Vector Machine (Linear))
    ==> | +- Naive Bayes (Kernel)[2] (Naive Bayes (Kernel))
    subprocess 'Testing'
    +- Apply Model (2)[1] (Apply Model)
    +- Performance[1] (Performance (Classification))
    Dec 02, 2013 11:14:39 PM com.rapidminer.gui.ProcessThread run
    SEVERE: java.lang.NullPointerException
    java.lang.NullPointerException
    at com.rapidminer.operator.learner.meta.Binary2MultiClassModel.startNonECOCProcess(Binary2MultiClassModel.java:164)
    at com.rapidminer.operator.learner.meta.Binary2MultiClassModel.performPrediction(Binary2MultiClassModel.java:278)
    at com.rapidminer.operator.learner.PredictionModel.apply(PredictionModel.java:76)
    at com.rapidminer.operator.learner.meta.AbstractStacking.learn(AbstractStacking.java:108)
    at com.rapidminer.operator.learner.meta.AbstractStacking.doWork(AbstractStacking.java:90)
    at com.rapidminer.operator.Operator.execute(Operator.java:866)
    at com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
    at com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:711)
    at com.rapidminer.operator.validation.ValidationChain.executeLearner(ValidationChain.java:214)
    at com.rapidminer.operator.validation.ValidationChain.learn(ValidationChain.java:305)
    at com.rapidminer.operator.validation.XValidation.performIteration(XValidation.java:159)
    at com.rapidminer.operator.validation.XValidation.estimatePerformance(XValidation.java:151)
    at com.rapidminer.operator.validation.ValidationChain.doWork(ValidationChain.java:273)
    at com.rapidminer.operator.Operator.execute(Operator.java:866)
    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:375)
    at com.rapidminer.operator.Operator.execute(Operator.java:866)
    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)
    在com.rapidminer.gui.ProcessThrea
  • Legacy UserLegacy User MemberPosts:0Newbie
    Hello guys,

    I keep on having this problem annd I have identified that it is caused by the Polynominal by Binominal Classification operator.
  • MariusHelfMariusHelf RapidMiner Certified Expert, MemberPosts:1,869Unicorn
    As a workaround, does it help to add a Materialize Data operator as the very first operator on both sides of the X-Validation?

    Best regards,
    Marius
  • Legacy UserLegacy User MemberPosts:0Newbie
    Hi Maruis!

    Yeap it worked!

    Thanks a lot,
    Elena
Sign InorRegisterto comment.