-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding known issue with GridSearch #89
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. _known_issues: | ||
|
||
Known Issues | ||
============ | ||
|
||
The estimators in this library are not compatible with scikit-learn's GridSearch, and other CV methods. That is, the following is not supported: | ||
|
||
.. code-block:: python | ||
from deslib.des.knora_e import KNORAE | ||
from sklearn.model_selection import GridSearchCV | ||
# (...) initialize a pool of classifiers | ||
kne = KNORAE(pool_classifiers) | ||
# Do a grid search on KNORAE's "k" parameter | ||
params = {'k': [1, 3, 5, 7]} | ||
grid = GridSearchCV(kne, params) | ||
grid.fit(X_dsel, y_dsel) # Raises an error | ||
This is due to a limitation of a scikit-learn method (sklearn.base.clone), under discussion in this issue_ | ||
|
||
.. _issue: https://github.com/scikit-learn/scikit-learn/issues/8370 |