Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nominal Attributes in LibSVM

When creating a libsvm training file, how do you differentiate between a nominal attribute verses 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.

like image 609
Cerin Avatar asked Apr 03 '10 03:04

Cerin


1 Answers

Don't do this I'm trying to encode certain nominal attributes as integers.

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

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

like image 83
dmcer Avatar answered Nov 03 '22 20:11

dmcer