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

predict method of EnsembleMODNetModel does not correspond to majority vote for classification tasks #225

Open
kaueltzen opened this issue Oct 9, 2024 · 1 comment · May be fixed by #245

Comments

@kaueltzen
Copy link
Contributor

Hi,

thanks for the nice package!

I have a remark about the EnsembleMODNetModel class: the predict method always corresponds to the mean of the predictions of the ensemble:

p_mean = np.array(all_predictions).mean(axis=0)

However, for classification tasks, this may result in non-integer labels and one would, for example, fail to compute an f1 score with such a prediction. If you are interested, I would be happy to implement hard and / or soft voting for classification ensembles here.

@ppdebreuck
Copy link
Owner

Hi @kaueltzen ! This is indeed true, however one could still convert it to discrete classes by putting a threshold. But I agree the latter makes more sense to be used in combinateion of return_prob=True. So what you suggest (hard and / or soft voting) makes sense! Please go ahead with what makes sense to you and happy to review :)

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

Successfully merging a pull request may close this issue.

2 participants