The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 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.
Options

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

  • Options
    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.