Open yujianyuanhaha opened 5 years ago
Your parameter string is incorrect. You need -s 3 -p 0.1 etc. Also there is no option nr_class
On 2019-07-09 12:50, Jet Yu wrote:
is regression implemented in matlab?
model = svmtrain(training_label_vector, training_instance_matrix,... 's 3 p 0.1 t 0 nr_class 2');
[predicted_label] = svmpredict(testing_label_vector, ... testing_instance_matrix, ... model, 's 3 p 0.1 t 0');
the predicted_label is always zero for me, with warning
WARNING: training data in only one class. See README for details. Total nSV = 0 Elapsed time is 0.007730 seconds. Accuracy = 0% (0/301) (classification)
-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/144?email_source=notifications\u0026email_token=ABI3BHUBRV7QMBZZU4BWEC3P6TTW7A5CNFSM4H7IYNMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G6F5NUQ", "url": "https://github.com/cjlin1/libsvm/issues/144?email_source=notifications\u0026email_token=ABI3BHUBRV7QMBZZU4BWEC3P6TTW7A5CNFSM4H7IYNMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G6F5NUQ", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
Links:
[1] https://github.com/cjlin1/libsvm/issues/144?email_source=notifications&email_token=ABI3BHUBRV7QMBZZU4BWEC3P6TTW7A5CNFSM4H7IYNMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G6F5NUQ [2] https://github.com/notifications/unsubscribe-auth/ABI3BHWGOUAISAHTQRWHTR3P6TTW7ANCNFSM4H7IYNMA
is regression implemented in matlab?
the
predicted_label
is always zero for me, with warningbtw, I have normalize the label to range [0,1] already