🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Model Simulator Seems to be Broken in RM 9.4

User: "mortiz"
New Altair Community Member
Updated by Jocelyn

Below is the error I get everytime I use the Simulator Block since I updated...

  • Exception: java.lang.NullPointerException
  • Message: null
  • Stack trace:
  • com.rapidminer.extension.modelsimulator.simulator.ModelSimulatorRenderer.createPredictionData(ModelSimulatorRenderer.java:280)
  • com.rapidminer.extension.modelsimulator.simulator.ModelSimulatorRenderer.getVisualizationComponent(ModelSimulatorRenderer.java:106)
  • com.rapidminer.gui.processeditor.results.ResultDisplayTools$1.run(ResultDisplayTools.java:171)
  • com.rapidminer.gui.tools.ProgressThread$3.run(ProgressThread.java:586)
  • java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  • java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  • java.lang.Thread.run(Thread.java:748)

Any tips?

Find more posts tagged with

Sort by:
1 - 14 of 141
    User: "varunm1"
    New Altair Community Member
    Hello @mortiz

    I am currently on 9.4 and the model simulator is working fine for me. Can you test the below sample process and inform us if this is working or not?

    <?xml version="1.0" encoding="UTF-8"?><process version="9.4.001">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="9.4.000" expanded="true" name="Process" origin="GENERATED_TUTORIAL">
        <parameter key="logverbosity" value="init"/>
        <parameter key="random_seed" value="2001"/>
        <parameter key="send_mail" value="never"/>
        <parameter key="notification_email" value=""/>
        <parameter key="process_duration_for_mail" value="30"/>
        <parameter key="encoding" value="SYSTEM"/>
        <process expanded="true">
          <operator activated="true" class="retrieve" compatibility="9.4.001" expanded="true" height="68" name="Retrieve Titanic Training" origin="GENERATED_TUTORIAL" width="90" x="45" y="34">
            <parameter key="repository_entry" value="//Samples/data/Titanic Training"/>
          </operator>
          <operator activated="true" class="naive_bayes" compatibility="9.4.001" expanded="true" height="82" name="Naive Bayes" origin="GENERATED_TUTORIAL" width="90" x="179" y="34">
            <parameter key="laplace_correction" value="true"/>
          </operator>
          <operator activated="true" class="retrieve" compatibility="9.4.001" expanded="true" height="68" name="Retrieve Titanic Unlabeled" origin="GENERATED_TUTORIAL" width="90" x="179" y="136">
            <parameter key="repository_entry" value="//Samples/data/Titanic Unlabeled"/>
          </operator>
          <operator activated="true" class="model_simulator:model_simulator" compatibility="9.4.001" expanded="true" height="103" name="Model Simulator" origin="GENERATED_TUTORIAL" width="90" x="313" y="34"/>
          <connect from_op="Retrieve Titanic Training" from_port="output" to_op="Naive Bayes" to_port="training set"/>
          <connect from_op="Naive Bayes" from_port="model" to_op="Model Simulator" to_port="model"/>
          <connect from_op="Naive Bayes" from_port="exampleSet" to_op="Model Simulator" to_port="training data"/>
          <connect from_op="Retrieve Titanic Unlabeled" from_port="output" to_op="Model Simulator" to_port="test data"/>
          <connect from_op="Model Simulator" from_port="simulator output" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
        </process>
      </operator>
    </process>
    

    User: "mortiz"
    New Altair Community Member
    OP
    That actually works. hmm...
    User: "varunm1"
    New Altair Community Member
    Is it possible to share the process and data that is throwing you this error? It would be helpful to recreate your error to see how the inputs are going inside the simulator.
    User: "mortiz"
    New Altair Community Member
    OP

    Unfortunately I cant share the XML but this is the process...



    User: "mortiz"
    New Altair Community Member
    OP
    Everything works except that block.
    User: "varunm1"
    New Altair Community Member
    Can you set a breakpoint before the "model simulator" to see if the model, training and test sets are going inside? You can set this by right-clicking on the model simulator operator and breakpoint before. Once you set it run the process and see what is going inside.
    User: "IngoRM"
    New Altair Community Member
    Yes, please, whatever you can share will be very helpful!  This has been reported a couple of days ago (see: https://community.rapidminer.com/discussion/55665/after-updating-rapidminer-i-am-getting-error-running-the-model-simulator ) but we did not got a lot of information yet what is causing this issue.  I also cannot reproduce it and that makes fixing very hard... 
    We really appreciate your support on this and are very sorry for the inconvenience,
    Ingo
    User: "IngoRM"
    New Altair Community Member
    Accepted Answer
    Another quick follow up: does your data contain Date or Time columns by any chance?
    User: "mortiz"
    New Altair Community Member
    OP
    @IngoRM @varunm1

    Looks like the error sits with the Date attribute. When I removed Date from my dataset, the model simulator ran correctly. 
    User: "varunm1"
    New Altair Community Member
    Updated by varunm1
    Hello @mortiz

    That's the issue. The model simulator doesn't support date attribute. Glad you resolved it
    User: "IngoRM"
    New Altair Community Member
    Accepted Answer
    Awesome, thanks for confirming!  I was able to reproduce the problem with a date column and we will look into this asap.  Sorry again for the inconvenience.
    Best,
    Ingo
    User: "IngoRM"
    New Altair Community Member
    Just to keep you folks in the loop: the error has been fixed and we will deliver the fix as part of the next release (actually coming quite soon already...)
    User: "mortiz"
    New Altair Community Member
    OP
    Thanks for the update!
    User: "sgenzer"
    Altair Employee
    Again just for those who want to follow this issue, it is in Product Feedback here: https://community.rapidminer.com/discussion/55665/after-updating-rapidminer-i-am-getting-error-running-the-model-simulator