-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"SVM set failed" exception #5034
Comments
Hi
Shogun stores data in column major format. This mean your data is
interpreted as 41 vectors of dimension 125k, which probably causes
problems. Try transposing....
Best
H
On Thu, 14 May 2020 at 21:47, javiermaldonadoc ***@***.***> wrote:
Hello,
I'm using a I'm using the MultiClassLibSVM with 5 class dataset. But in
the end run throw an exception "SVM set failed". Also, the process is very
slow, about two hours to process a training dataset of 125K rows and 41
columns (NSL-KDD dataset).
As additional information: I'm tried the same dataset with random forest
and CART with no problem.
This is the function with the corresponding output.
SVM-output.txt
<https://github.com/shogun-toolbox/shogun/files/4630785/SVM-output.txt>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5034>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFKVP6STJZOZIPVYT6OIFLRRRKFRANCNFSM4NBAR4UA>
.
--
Sent from my phone
|
Thanks for your response, I've made the transposition and give me this error: And when i try to run random forest and CART with this transposition, give me this error: Before transposing, random forest and CART, works...
|
By executing I got these results: Without transposing: The last results is consistent with the number of cases (rows) and the first is consistent with the number of features (columns)... This information could help? Thank you very much! |
The error message seems to be pretty clear to me? |
@gf712 the error he gets on cart seems to have to do with the fmt lib crashing? :D |
Yes, seems like there is a formatting error.. @vigsterkr @theartful can we switch on the compile time checks of fmt to avoid this type of error at runtime? I am talking about https://fmt.dev/latest/api.html#format-api |
@javiermaldonadoc |
@gf712 |
Hmmm that is annoying.. I guess we just have to look for the bug then. Or we go back to using macros to do these checks. @karlnapf @vigsterkr ? |
no macros please :) |
Yes, that's correct and i'm checking that using these function jointly with transpose function. I have 41 features and 125K of examples in training and 22K in testing and is consistent with the given numbers by using this function. |
I checked that those numbers are the same 125K in both cases, labels and vectors. |
strange. Could you post a (preferably minimal standalone with synthetic data) example to reproduce this issue? Maybe there is a problem in the multiclass codes ... |
Thank you! Hope this work for you! Again, thank you very much! I really appreciate that! |
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. |
This issue is now being closed due to a lack of activity. Feel free to reopen it. |
Hello,
I'm using a I'm using the MultiClassLibSVM with 5 class dataset. But in the end run throw an exception "SVM set failed". Also, the process is very slow, about two hours to process a training dataset of 125K rows and 41 columns (NSL-KDD dataset).
As additional information: I'm tried the same dataset with random forest and CART with no problem.
This is the function with the corresponding output.
SVM-output.txt
The text was updated successfully, but these errors were encountered: