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

Bug with custom classifier #7

Open
xiaolongwu0713 opened this issue Nov 12, 2021 · 1 comment
Open

Bug with custom classifier #7

xiaolongwu0713 opened this issue Nov 12, 2021 · 1 comment

Comments

@xiaolongwu0713
Copy link

If you uncomment below, and run your test_file_multi.py, you will know:
FBCSP_multi_clf = FBCSP_Multiclass(trials_dict, fs, classifier = SVC(kernel = 'rbf', probability = True), print_var = print_var)

@TekinGunasar
Copy link

I have an implementation that fixes this issue. It occurs because every time he trained a new classifier for the One vs Rest system, it would overwrite the previous one, which is an issue in itself, but especially an issue here when the MIBIF feature extraction method results in a variable number of features per classifier. It’s a simple fix - you just have to make a copy of the SkLearn classifier object.

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