scikit-learn-contrib / DESlib

A Python library for dynamic classifier and ensemble selection
BSD 3-Clause "New" or "Revised" License
477 stars 106 forks source link

DES Voting parameter issue #260

Closed atifov closed 2 years ago

atifov commented 2 years ago

I would like to change the "voting'' hyperparameter in the DES models. However, whenever I change the voting hyperparameter, I get an error. The code and error are as follows:

_model = KNOP(poolclassifiers=classifiers, voting='soft')

TypeError: init() got an unexpected keyword argument 'voting'

Please note that I have been able to change the other hyperparameters, this is the only exception.

Your help on this matter will be highly appreciated. Thanks

Menelau commented 2 years ago

@atifov Hello,

Which version of the library are you using? The stable version (0.3.5) or the one installed based on the master code (dev)? Can you try installing the master version with the command:

pip install git+https://github.com/scikit-learn-contrib/DESlib

and see if it works?

atifov commented 2 years ago

I checked the version of library, it's the latest version 0.3.5.

Following are the commands and results:

import deslib print(deslib.version) 0.3.5

atifov commented 2 years ago

Following your advice and installing the master version, the issue has been resolved. Thanks a lot.