Skip to content

Commit c155709

Browse files
AbhishekAbhishek
authored andcommitted
Address review: fix run_model_on_task example, remove unwanted files
- Use HistGradientBoostingClassifier instead of DecisionTreeClassifier (fixes ValueError with missing values in task 1) - Remove .DS_Store - Remove tests/files/misc/features_with_whitespaces.xml.pkl
1 parent 2e455d1 commit c155709

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

.DS_Store

-8 KB
Binary file not shown.

openml/runs/functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def run_model_on_task( # noqa: PLR0913
109109
--------
110110
>>> import openml
111111
>>> import openml_sklearn # doctest: +SKIP
112-
>>> from sklearn.tree import DecisionTreeClassifier # doctest: +SKIP
113-
>>> clf = DecisionTreeClassifier() # doctest: +SKIP
112+
>>> from sklearn.ensemble import HistGradientBoostingClassifier # doctest: +SKIP
113+
>>> clf = HistGradientBoostingClassifier() # doctest: +SKIP
114114
>>> task = openml.tasks.get_task(1) # doctest: +SKIP
115115
>>> run = openml.runs.run_model_on_task(clf, task) # doctest: +SKIP
116116
"""
-253 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)