Possible Error in Scripting Example in How to Extend RapidMiner tutorial
jcurry1
New Altair Community Member
Hi there,
To be aware, it looks like there is a small bug in the scripting example in "How to Extend RapidMiner 5". There is an extra left bracket on the line. I had to match it on the right to get the script to work.
A very,very small thing, but this might save other newbies a half hour of debugging as the compilation error (see below) was misleading so I missesd the obvious error. If I am correct, can you correct the document?
Thanks,
John.
Script1.groovy: 19: unexpected token: for @ line 19, column 1.
for (Example example : exampleSet)
^
1 error
.
Jan 3, 2013 2:29:33 PM SEVERE: Here: Process[1] (Process)
subprocess 'Main Process'
+- Read CSV[1] (Read CSV)
==> +- Execute Script[1] (Execute Script)
To be aware, it looks like there is a small bug in the scripting example in "How to Extend RapidMiner 5". There is an extra left bracket on the line. I had to match it on the right to get the script to work.
A very,very small thing, but this might save other newbies a half hour of debugging as the compilation error (see below) was misleading so I missesd the obvious error. If I am correct, can you correct the document?
Thanks,
John.
Jan 3, 2013 2:29:33 PM SEVERE: Process failed: The scripting engine Groovy reported an error in the script: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
String newName=("date(" + sourceAttribute.getName()+")";
Script1.groovy: 19: unexpected token: for @ line 19, column 1.
for (Example example : exampleSet)
^
1 error
.
Jan 3, 2013 2:29:33 PM SEVERE: Here: Process[1] (Process)
subprocess 'Main Process'
+- Read CSV[1] (Read CSV)
==> +- Execute Script[1] (Execute Script)
Tagged:
0
Answers
-
Hi John,
thanks for reporting! I will update the document :-)
Best,
Nils0