Pages: [1]
  Print  
Author Topic: can not see my results  (Read 206 times)
laurimu
Newbie
*
Posts: 3


« on: February 09, 2012, 12:45:18 PM »

Hi everybody,

I am working with RapidMiner for a few days now and every now and then some things don't work the way I want but most works by now - until today. I can not see my results anymore. It says "Creating Display" in the right corner on the bottom, but then it says

Error executing background job 'Creating Display':
java.lang.NullPointerException

Exception: java.lang.NullPointerException
Message: null
Stack trace:
  edu.uci.ics.jung.visualization.DefaultVisualizationModel.setGraphLayout(DefaultVisualizationModel.java:114)
  edu.uci.ics.jung.visualization.BasicVisualizationServer.setGraphLayout(BasicVisualizationServer.java:273)
  com.rapidminer.gui.graphs.GraphViewer.changeLayout(GraphViewer.java:601)
  com.rapidminer.gui.graphs.GraphViewer.render(GraphViewer.java:755)
  com.rapidminer.gui.processeditor.results.SingleResultOverview.<init>(SingleResultOverview.java:178)
  com.rapidminer.gui.processeditor.results.ProcessExecutionResultOverview.<init>(ProcessExecutionResultOverview.java:167)
  com.rapidminer.gui.processeditor.results.ResultOverview.addResults(ResultOverview.java:117)
  com.rapidminer.gui.processeditor.results.DockableResultDisplay$4.run(DockableResultDisplay.java:180)
  com.rapidminer.gui.tools.ProgressThread$2.run(ProgressThread.java:176)
  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

I have about 500 different .txt files in three different folders that are loaded for text mining.

My Code:
ersion="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.1.011">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="5.1.011" expanded="true" name="Process">
    <process expanded="true" height="546" width="570">
      <operator activated="true" class="text:process_document_from_file" compatibility="5.2.001" expanded="true" height="76" name="Process Documents from Files" width="90" x="45" y="30">
        <list key="text_directories">
          <parameter key="negativ" value="C:\Dokumente und Einstellungen\MuellerL\Eigene Dateien\RapidMining\Test_Daten\Deutsch\negativ"/>
          <parameter key="positiv" value="C:\Dokumente und Einstellungen\MuellerL\Eigene Dateien\RapidMining\Test_Daten\Deutsch\positiv"/>
          <parameter key="neutral" value="C:\Dokumente und Einstellungen\MuellerL\Eigene Dateien\RapidMining\Test_Daten\Deutsch\positiv"/>
        </list>
        <parameter key="file_pattern" value="*.txt"/>
        <parameter key="vector_creation" value="Binary Term Occurrences"/>
        <parameter key="add_meta_information" value="false"/>
        <parameter key="keep_text" value="true"/>
        <parameter key="prune_method" value="absolute"/>
        <parameter key="prune_below_absolute" value="2"/>
        <parameter key="prune_above_absolute" value="999"/>
        <parameter key="prune_below_rank" value="5.0"/>
        <parameter key="prune_above_rank" value="5.0"/>
        <process expanded="true" height="564" width="614">
          <operator activated="true" class="text:tokenize" compatibility="5.2.001" expanded="true" height="60" name="Tokenize" width="90" x="45" y="30"/>
          <operator activated="true" class="text:filter_stopwords_german" compatibility="5.2.001" expanded="true" height="60" name="Filter Stopwords (German)" width="90" x="179" y="30"/>
          <operator activated="true" class="text:filter_by_length" compatibility="5.2.001" expanded="true" height="60" name="Filter Tokens (by Length)" width="90" x="313" y="30">
            <parameter key="min_chars" value="2"/>
          </operator>
          <operator activated="true" class="text:replace_tokens" compatibility="5.2.001" expanded="true" height="60" name="Replace Tokens" width="90" x="447" y="30">
            <list key="replace_dictionary">
              <parameter key="Coca Cola" value="Coca-Cola"/>
              <parameter key="Coca" value="Coca-Cola"/>
              <parameter key="Cola" value="Coca-Cola"/>
            </list>
          </operator>
          <connect from_port="document" to_op="Tokenize" to_port="document"/>
          <connect from_op="Tokenize" from_port="document" to_op="Filter Stopwords (German)" to_port="document"/>
          <connect from_op="Filter Stopwords (German)" from_port="document" to_op="Filter Tokens (by Length)" to_port="document"/>
          <connect from_op="Filter Tokens (by Length)" from_port="document" to_op="Replace Tokens" to_port="document"/>
          <connect from_op="Replace Tokens" from_port="document" to_port="document 1"/>
          <portSpacing port="source_document" spacing="0"/>
          <portSpacing port="sink_document 1" spacing="0"/>
          <portSpacing port="sink_document 2" spacing="0"/>
        </process>
      </operator>
      <operator activated="true" class="numerical_to_binominal" compatibility="5.1.011" expanded="true" height="76" name="Numerical to Binominal" width="90" x="180" y="30"/>
      <operator activated="true" class="fp_growth" compatibility="5.1.011" expanded="true" height="76" name="FP-Growth" width="90" x="315" y="30">
        <parameter key="min_support" value="0.05"/>
      </operator>
      <operator activated="true" class="create_association_rules" compatibility="5.1.011" expanded="true" height="76" name="Create Association Rules" width="90" x="450" y="30">
        <parameter key="criterion" value="lift"/>
        <parameter key="min_criterion_value" value="0.2"/>
      </operator>
      <connect from_op="Process Documents from Files" from_port="example set" to_op="Numerical to Binominal" to_port="example set input"/>
      <connect from_op="Process Documents from Files" from_port="word list" to_port="result 1"/>
      <connect from_op="Numerical to Binominal" from_port="example set output" to_op="FP-Growth" to_port="example set"/>
      <connect from_op="FP-Growth" from_port="frequent sets" to_op="Create Association Rules" to_port="item sets"/>
      <connect from_op="Create Association Rules" from_port="rules" to_port="result 2"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="36"/>
      <portSpacing port="sink_result 3" spacing="0"/>
    </process>
  </operator>
</process>



Thanks for your help!
Logged
Marco Boeck
Administrator
Sr. Member
*****
Posts: 264


WWW
« Reply #1 on: February 09, 2012, 02:33:32 PM »

Hi,

did the process run just fine before? If so, you can try "View" - "Restore Default Perspective", this might fix the problem.
If not, please make sure you are using the latest RapidMiner version (5.2) and try again. If the problem persists, I'm afraid that I cannot help you right now, but we are aware of this issue and looking into it.

Regards,
Marco
« Last Edit: February 09, 2012, 02:39:00 PM by Marco Boeck » Logged

Did you try our new Marketplace? Upload or download new Extensions, add comments, and organize your operators. Have a look at  http://marketplace.rapid-i.com
laurimu
Newbie
*
Posts: 3


« Reply #2 on: February 09, 2012, 03:51:18 PM »

Thanks for your answer! But there is still nothing to see...  Cry
The process ran before several times always with a result shown.
Thanks, Laura
Logged
haddock
Hero Member
*****
Posts: 759



WWW
« Reply #3 on: February 09, 2012, 05:33:32 PM »

Hi there,

Just a thought, but it could be related to an issue addressed in another thread, http://rapid-i.com/rapidforum/index.php/topic,3619.msg13530.html#msg13530 . I know from experience that the association rules operator chokes if there are itemsets containing more than a small number of items. That is what I pointed out in the other thread last April. So you might have generated itemsets that are too long, in which case you could try setting the frequency threshold a bit higher.

Just my two ...
Logged

Where is the wisdom we have lost in knowledge?
Where is the knowledge we have lost in information?

T.S.Eliot ~ Choruses from the Rock 1934
Q-Dog
Newbie
*
Posts: 32


« Reply #4 on: February 09, 2012, 05:39:09 PM »

I can reproduce this error with just having a few itemsets (see the following sample XML: http://rapid-i.com/rapidforum/index.php/topic,4685.0.html)

It seems that the error only occurs with the newest version
Logged
haddock
Hero Member
*****
Posts: 759



WWW
« Reply #5 on: February 09, 2012, 06:04:39 PM »

Hi again,

Quote
I can reproduce this error

Perhaps not, your example uses GSP, this thread does not.

 I strongly suspect that there is a common underlying weakness, but that remains to be seen!
Logged

Where is the wisdom we have lost in knowledge?
Where is the knowledge we have lost in information?

T.S.Eliot ~ Choruses from the Rock 1934
laurimu
Newbie
*
Posts: 3


« Reply #6 on: February 10, 2012, 08:55:25 AM »

The strange thing is that it perfectly works when I recreate the process in a new one!
Logged
Nils
Administrator
Full Member
*****
Posts: 108


« Reply #7 on: February 10, 2012, 09:37:13 AM »

I think the problem here was the creation of a GraphRenderer with too much items. Before it only checked if there are rules to render, now if there are more then 500 rules only the best 500 rules will be rendered in the "Graph View". For slower machines this still might be slow but shouldn't block your machine anymore.

Greetings,
Nils
Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
Pages: [1]
  Print  
 
Jump to: