Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
can not see my results
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!
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!
0
Answers
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
The process ran before several times always with a result shown.
Thanks, Laura
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 ...
It seems that the error only occurs with the newest version
I strongly suspect that there is a common underlying weakness, but that remains to be seen!
Greetings,
Nils