🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

[almost solved] md5 or external function

User: "greg"
New Altair Community Member
Updated by Jocelyn
Hello

Is there are way to compute MD5 in rapidminer, and generally to write some kind of external function or script?

TIA

greg

Find more posts tagged with

Sort by:
1 - 8 of 81
    User: "Rene"
    New Altair Community Member
    The Execute Script-Operator may be what you are searching for.
    One example you can see here.
    User: "greg"
    New Altair Community Member
    OP
    Thanks a lot this is waaaaay cool ;)

    Now I just have to learn java lol
    User: "greg"
    New Altair Community Member
    OP
    I was able to create my custom function, but the GUI shows an error trying to connect the output the next block (namely a "union"), what did I do wrong?

    ExampleSet exampleSet = operator.getInput(ExampleSet.class);
    for (Example example : exampleSet) {
    example["attribute_test"] = "test";
    }
    return exampleSet;
    User: "haddock"
    New Altair Community Member
    Hi there,

    You could try
    example.setValue("attribute_test","test" )
    .

    Good luck.
    User: "greg"
    New Altair Community Member
    OP
    Hi

    That gives me the following error:

    AM SEVERE: Process failed: The scripting engine Groovy reported an error in the script: groovy.lang.MissingMethodException: No signature of method: com.rapidminer.example.Example.setValue() is applicable for argument types: (java.lang.String, java.lang.String) values: [attribute_test, test]
    Possible solutions: setValue(com.rapidminer.example.Attribute, java.lang.String), setValue(com.rapidminer.example.Attribute, double), getValue(com.rapidminer.example.Attribute), getClass(), values().

    Using "equal" the script was working (the attribute is correctly filled), but the GUI doesn't accept the connection :(
    User: "greg"
    New Altair Community Member
    OP
    I changed to

    Attribute attr = example.getAttributes().get("attribute_test");
    example.setValue(attr,"test" );

    same behavior as with "equal", I guess I need to inform the GUI, don't I ?
    User: "greg"
    New Altair Community Member
    OP
    No one has an idea? the process is working but the GUI states an error :(
    User: "MariusHelf"
    New Altair Community Member
    Hi greg,

    what do you mean with "the gui states an error" - do you mean a warning or an error in the Problems view of RapidMiner? Don't worry, these are *possible* problems, and in some cases RapidMiner is not able to get the correct meta data information and thus indicates a possible error/warning.

    Best, Marius