treder / MVPA-Light

Matlab toolbox for classification and regression of multi-dimensional data
MIT License
70 stars 35 forks source link

update libsvm train and test function to properly work in multiclass classifications #28

Closed nastarandarjani closed 2 years ago

nastarandarjani commented 2 years ago

In multiclass problems, train_libsvm transform labels to 0, 1 and mistakenly change it to two-class classifications. Also, test_libsvm considers predicted labels as 0 and 1, which is incorrect in a multiclass classification problem.