garydoranjr / misvm

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

Support for sklearn cross validation #4

Closed sathappanspm closed 9 years ago

sathappanspm commented 9 years ago

Made changes to the predictors so that they adhere to sklearn standards and thus can be used within the sklearn crossvalidation methods like gridsearchcv and randomizedsearchcv.

Also, some changes were to MISVM.fit so that it can work with sparse matrices.

nagpaul commented 6 years ago

Does the sparse matrix change handle the matrices in sparse formats or convert them to dense?

garydoranjr commented 6 years ago

@nagpaul It looks like it just converts them to dense matrices (see below)

https://github.com/garydoranjr/misvm/blob/aff618f39f1e4015c9557a3b744f4bfeb0abd7ce/misvm/mi_svm.py#L57

Marjaneh-T commented 5 years ago

Hey Guys,

Can you give an example of using MISVM with cross-validation?

Thanks!