문제

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 ?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top