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.

Script Operator Made Easier?

wesselwessel Member Posts: 537 Maven
edited June 2019 in Help
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

Answers

  • wesselwessel Member Posts: 537 Maven
    Can potentially do an SVN checkout and create a class Foo in the default package.
    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;
    }
    }
Sign In or Register to comment.