DES Voting parameter issue
atifov opened this issue · 3 comments
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(pool_classifiers=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
@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?
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
Following your advice and installing the master version, the issue has been resolved. Thanks a lot.