Id attribute
Hi,
what is the purpose of a id attribute? There's no documentation in the Attributes source file. As far as I understand it can be used by operators which create example sets and which want to assign a unique value to each example to identify an example later by another operator. Id attributes (and "special" attributes in general) are not used by Learners and Models, right?
Thanks
what is the purpose of a id attribute? There's no documentation in the Attributes source file. As far as I understand it can be used by operators which create example sets and which want to assign a unique value to each example to identify an example later by another operator. Id attributes (and "special" attributes in general) are not used by Learners and Models, right?
Thanks
0
Answers
the Id attribute is indeed not used by learners to build a model since this generally not intended. Hence, the Id attribute is ignored by the learners. On the contrary other special attributes have to be used by learners. The most important special attributes which has to be used by learners (if they implement supervised learning schemes) is the label. Some learners additionally use the potentially present weight attribute (which is also special) to make use of example weights.
Regards,
Tobias
Regards,
Thomas
You can use "Set Role" to change the role of an attribute but only one id is allowed at a time. If you want multiple ids, you could set the roles of the ones you want to be id1, id2, id3 and so on. Here's an example regards
Andrew