Skip to content
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

Can't use SVM for decoding #4

Open
geigermartin opened this issue Jan 5, 2024 · 1 comment
Open

Can't use SVM for decoding #4

geigermartin opened this issue Jan 5, 2024 · 1 comment

Comments

@geigermartin
Copy link

Hi!

While going through the tutorial overlapcorrectedLDA_options.jl, I tried to exchange the LDA for an SVM classifier.
However, this unfortunately is not working (even though the SVM is MLJ supported as well).

My code:

using MLJLIBSVMInterface
SVC = @load SVC pkg = LIBSVM
uf_svm = fit(UnfoldDecodingModel,des,evt,dat,SVC(),"eventA"=>:condition;
    nfolds=2,
    UnfoldFitkwargs=(;solver=customsolver),
    eventcolumn=:event,
    multithreading = false)
plot_erp(coeftable(uf_svm)) 
@behinger
Copy link
Member

ok this is working partially now. The problem is coeftable which requires the LDA output format, nt sure why this is incompatible with SVM output frmat. Don't have time to fiix it right now - someone with more experience in MLJ could fix this super fast i think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants