The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Possible Error in Scripting Example in How to Extend RapidMiner tutorial
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
thanks for reporting! I will update the document :-)
Best,
Nils