You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code fails with an error message SystemError: [ERROR] In file /opt/shogun/src/shogun/multiclass/MulticlassLibSVM.cpp line 200: SVM set failed:
however, if I change the y array to [1,1,2,2,1,1], no such error occurs. If i put four different classes in y (e.g. [1,1,2,2,3,4]), the error occurs as well. I dug into the code of MulticlassLibSVM a little bit, I suspect the lines 162-194 to be the culprit (they seem a bit 'off'), but I don't know enough about the implementation details to be of any help i fear :(
Of course, i figure the error is on my part, since the multiclass example delivered with the package runs just fine. I just figured that the error message is not very helpful at this point.
The text was updated successfully, but these errors were encountered:
@bmurauer thnx for the bug report, indeed bug is coming from somewhere there :) it's a bit painful to look at that code, lemme try if it's easy to fix.
@bmurauer ok so a very quick fix is that you change the labeling to 0 base 💃
but yeah this shoudl work with any arbitrary labeling... i'm working on it but that'll take a bit longer to get in.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The following code fails with an error message
SystemError: [ERROR] In file /opt/shogun/src/shogun/multiclass/MulticlassLibSVM.cpp line 200: SVM set failed
:however, if I change the y array to
[1,1,2,2,1,1]
, no such error occurs. If i put four different classes in y (e.g.[1,1,2,2,3,4]
), the error occurs as well. I dug into the code of MulticlassLibSVM a little bit, I suspect the lines 162-194 to be the culprit (they seem a bit 'off'), but I don't know enough about the implementation details to be of any help i fear :(Of course, i figure the error is on my part, since the multiclass example delivered with the package runs just fine. I just figured that the error message is not very helpful at this point.
The text was updated successfully, but these errors were encountered: