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"
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.
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.
Tagged:
0
Answers
use "Generate Copy" to create a new attribute column without the brackets, e.g. "prediction(label)" to "predictedLabel"
Best, Marius