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
Script Operator Made Easier?
Dear RM Developers,
I'm a big fan of the Script operator.
But it always takes a long time to do things, because there is no code completion or error highlighting, etc.
Is the user-friendliness of the script operator likely to change in the future?
On a side note, I always use Eclipse to edit scripts, and then copy paste to Script Operator Editor.
Best regards,
Wessel
I'm a big fan of the Script operator.
But it always takes a long time to do things, because there is no code completion or error highlighting, etc.
Is the user-friendliness of the script operator likely to change in the future?
On a side note, I always use Eclipse to edit scripts, and then copy paste to Script Operator Editor.
Best regards,
Wessel
0
Answers
But it will still do tons of errors because I think eclipse SVN checkout is not doing Groovy?
Or maybe it is doing Groovy but it can't find anything on the Operator Input?
import com.rapidminer.example.Example;
import com.rapidminer.example.ExampleSet;
import com.rapidminer.operator.Operator;
public class Foo {
@SuppressWarnings("unused")
public static void main(String[] args) {
new Foo();
}
static Operator operator;
Foo() {
ExampleSet es = bar();
}
private ExampleSet bar() {
ExampleSet es = operator.getInput(ExampleSet.class);
for (Example e : es) {
e["att1"] = e["att2"] + e["att3"];
}
return es;
}
}