Pergunta

I am trying to classify the reuters text using svm light but my train data does not follow the format

<'line> .=. <'target> <'feature>:<'value> <'feature>:<'value> ... <'feature>:<'value> # <'info>

it is of the form

<'line> .=. <'feature>:<'value> <'feature>:<'value> ... <'feature>:<'value> # <'info>

The target label is in a separate file. I know there's an option in SVM light that lets you specify a separate target label file but i cannot find it on the SVM light website because a get an arror message:

Reading examples into memory...Line must start with label or 0!!!

whenever i load my training data using

svm_learn example1/train.dat example1/model

any help ?

Foi útil?

Solução

Performing a rigorous research i realized that there is no syntax in SVM light that allows users to specify an external class label file for training data. The class labels must be part of the training data and it should follow the "target feature:value" format of SVM light

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top