Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
"brackets in Generate Attribute operator"
TheBen
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.
Find more posts tagged with
AI Studio
Generate Attributes
Accepted answers
All comments
TheBen
here is my workaround:
use "Generate Copy" to create a new attribute column without the brackets, e.g. "prediction(label)" to "predictedLabel"
MariusHelf
Instead of copying the attribute, you could simply rename it with the Rename operator.
Best, Marius
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups