"[SOLVED] Execute R Script operator inside Sliding Window Validation = RM Crash"

molipetmolipet MemberPosts:2Contributor I
edited June 2019 inHelp
Hi Folks,

I use Mac OS X Lion 10.7.4, and R version 2.12.2 (2011-02-25). My R extension in RM works properly, I can use the R console, and so on...

I'd like to store the labelled example set (especially confidence, prediction informations) in every iteration of Sliding Window Validation.
So basically, in the Training part of Sliding Window Validation I have a k-nn. In the Testing part I have an Apply Model and a Forecasting Performance operator. This process is working fine.

And to store some part of the example set I put an Execute R Script operator inside the Testing part of the validation. Namely the Execute R Script is connect to the example set output of the Forecasting Performance operator. I set an input parameter of the R script, and the body of the script is 'print("OK")', nothing else.

So the interesting part of my process is shown below:


<帕拉meter key="training_window_width" value="90"/>
<帕拉meter key="training_window_step_size" value="1"/>
<帕拉meter key="test_window_width" value="1"/>


<帕拉meter key="k" value="11"/>
<帕拉meter key="weighted_vote" value="true"/>
<帕拉meter key="measure_types" value="NumericalMeasures"/>
<帕拉meter key="nominal_measure" value="SimpleMatchingSimilarity"/>
<帕拉meter key="numerical_measure" value="CosineSimilarity"/>





< portSpacing端口= " sink_through 1”间隔= " 0 " / >






<帕拉meter key="horizon" value="1"/>


<帕拉meter key="script" value="print("OK")"/>

<帕拉meter key="name_of_variable" value="ex"/>















When I play the process I get a "com.rapidminer.gui.RapidMinerGUI quit unexpectedly while using the libjri.jnilib plugin." message and on the console:

Jun 20, 2012 11:44:41 PM com.rapidminer.Process setProcessLocation
INFO: Decoupling process from location //NewLocalRepository/testProcess. Process is now associated with file //NewLocalRepository/testProcess.
Jun 20, 2012 11:44:48 PM com.rapidminer.tools.WrapperLoggingHandler log
INFO: No filename given for result file, using stdout for logging results!
Jun 20, 2012 11:44:48 PM com.rapidminer.Process run
INFO: Process //NewLocalRepository/testProcess starts
Jun 20, 2012 11:44:48 PM com.rapidminer.Process loadInitialData
INFO: Loading initial data.
Jun 20, 2012 11:44:56 PM com.rapidminer.tools.WrapperLoggingHandler log
INFO: Execute Script (R): Error: protect(): protection stack overflow

Exception in thread "ProcessThread" Exception in thread "ProcessThread" Exception in thread "ProcessThread" Exception in thread "ProcessThread" java(5744,0x119de3000) malloc: *** error for object 0x77e5b4298: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
When I used Execute R Script in a X-Validation operator I got the same problem.
But when I used the Execute R Script (with the same properties) in the Main Process, it worked properly (There was no "package ?mlr? is not available" warning)

Thanks for any help!

Best,
Peter
Tagged:

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, MemberPosts:1,869Unicorn
    Hi Peter,

    thanks for your report. At this time I can't see anything bad with your process setup, so obviously you have found a bug. If you want to use R just to store the data, you can use other operators until we fix it. Write CSV or Store should also do the job.
    It would be nice if you could report the bug also on bugs.rapid-i.com.

    Best, Marius
  • molipetmolipet MemberPosts:2Contributor I
    Hi Marius,

    thanks for your replay. Finally I solved the storing with combination of Read CSV, Append and Write CSV operators.
    As you asked me, I've reported the bug.
    So this is "Bug 1209" (http://bugs.rapid-i.com/show_bug.cgi?id=1209)

    Best,
    Peter
Sign InorRegisterto comment.