garydoranjr / misvm

Multiple-Instance Support Vector Machines
BSD 3-Clause "New" or "Revised" License
238 stars 81 forks source link

Class weights #23

Open mpourreza opened 4 years ago

mpourreza commented 4 years ago

Hello,

I have an issue with the distribution of classes. I have 4000 negative bags and 500 positive bags and it always predicts as negative. I would like to add the class_weight parameter, but the parameters for the mi-SVM are limited.

Thanks!

garydoranjr commented 4 years ago

Hi @mpourreza, yes, unfortunately this functionality is not currently implemented. I won't have any availability to make these changes, but if you or someone else adds the functionality and creates a pull request, I can merge it into the repo.