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

"brackets in Generate Attribute operator"

TheBenTheBen Member Posts: 11 Contributor II
edited June 2019 in Help
The generate attribute operator has a field "function expression".

If I use this field and select an attribute with brackets: prediction(label) then I get a syntax error

-> Unrecognized symbol prediction.
-> Unrecognized symbol label. (because the select attributes operator is applied)
-> syntax error (implicit multiplication not enabled)

This is what I want to implement:

function expression: attr1 + "_" + prediction(attr2) + "_" + prediction(attr3)

If I use concat(attr1, prediction(attr2)) I get the same error.

Answers

  • TheBenTheBen Member Posts: 11 Contributor II
    here is my workaround:

    use "Generate Copy" to create a new attribute column without the brackets, e.g. "prediction(label)" to "predictedLabel"
  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Instead of copying the attribute, you could simply rename it with the Rename operator.

    Best, Marius
Sign In or Register to comment.