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

[Solved] Error in Generate Attributes operator

qwertzqwertz Member Posts: 130 Contributor II
edited December 2019 in Help
Dear community,

When using function "param()" of the type "process" in "generate attributes" operator I receive an error:
"unrecocnized symbol "param" encountered"

I also tried the example given in the parameter's help: "param("Read Excel", "file") --> same error


Does anyone encountered the same problem?


Cheers
Sachs

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Hi Sachs,

    just be a bit more courageous on hitting the play button, even if RapidMiner complains :) This is only a bug in the function editor, but if you run the process, it will work.
    I created a bug for this, where you can track the progress on this issue: http://bugs.rapid-i.com/show_bug.cgi?id=1192

    Best, Marius
  • qwertzqwertz Member Posts: 130 Contributor II
    Hi Marius,

    thanks for sharing that information. It inspired me to fool around a little and after quite a long time I found out that

    - param() function is case sensitive (e.g. param("Generate Data", "datamanagement"))
    - parameters consisting of two words need to be written together with underscore (e.g. param("Windowing", "label_attribute"))


    Hope this helps a little.


    Regards
    Sachs
  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Yeah, basically everything in RapidMiner is case sensitive: macro names, attribute names, and also operator names.
    The underscore thingy is admittedly a bit tricky if you don't know about it. The cause for that is that internally parameter names can't contain spaces and use underscores instead. On screen they are replaced with whitespace for readabilty.
Sign In or Register to comment.