Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AI and Deep Learning by (50.2k points)

When creating a libsvm training file, how do you differentiate between a nominal attribute versus a numeric attribute? I'm trying to encode certain nominal attributes as integers, but I want to ensure libsvm doesn't misinterpret them as numeric values. Unfortunately, libsvm's site seems to have very little documentation. Pentaho's docs seem to imply libsvm makes this distinction, but I'm still not clear how it's made.

1 Answer

0 votes
by (107k points)

Just use a separate binary feature for each value of each nominal attribute.

The way SVMs are expressed, all attributes/features are numeric and class labels are nominal. Nominal attributes are essentially faked by using commonly exclusive binary features.

For more information regarding the same, refer to the following link:

https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html

31k questions

32.4k answers

500 comments

693 users

Browse Categories

...