0 votes
1 view
in AI and Deep Learning by (48.6k 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 (105k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...