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
Convert Nominal LABEL to numerical
Hi,
I want to train a REGRESSION SVM (nu-SVR) with a sparse data example.
I am able to create the sparse data file easily. The "label" in this case is a numeric value since we're doing regression.
When I load in the data file RM automatically sets the label as a nominal type. This then causes the SVM to produce an error since it needs a numeric label for its regression.
I've tried nominal2numeric, but it only seems to work for attributes NOT LABELS.
How can I force RM to treat the labels at numerical (They are number!)
Thanks!!!
I want to train a REGRESSION SVM (nu-SVR) with a sparse data example.
I am able to create the sparse data file easily. The "label" in this case is a numeric value since we're doing regression.
When I load in the data file RM automatically sets the label as a nominal type. This then causes the SVM to produce an error since it needs a numeric label for its regression.
I've tried nominal2numeric, but it only seems to work for attributes NOT LABELS.
How can I force RM to treat the labels at numerical (They are number!)
Thanks!!!
0
Answers
Operators ignore special attributes by default. To work on special attributes use the AttributeSubsetPreprocessing Operator with checked "process_special_attributes". Second thing is, that you should use the NominalNumbers2Numerical instead of Nominal2Numerical, since this would not interpret the strings as numbers but creates new numerical values instead.
This XML fragment should help, if you past it into your process: Greetings,
Sebastian
That worked perfectly!
Thank You!!!!
-Noah