Skip to content

Commit 7bd8d6c

Browse files
Merge pull request #146 from scikit-learn-contrib/doc_categorical_patch
plot_tuto_categorical.py has been patched
2 parents 13a76ec + 8d72228 commit 7bd8d6c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/tutorials/plot_tuto_categorical.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
# We get the data and focus on the explanatory variables
2323
df = data.get_data("Titanic")
2424
df = df.drop(columns=["Survived"])
25+
print("Dataset shape:", df.shape)
26+
df.head()
2527

2628
# %%
2729
# 2. Mixed type imputation methods
@@ -61,7 +63,7 @@
6163
imputer_hgb = ImputerRegressor(estimator=pipestimator, handler_nan="none")
6264
imputer_wrap_hgb = preprocessing.WrapperTransformer(imputer_hgb, bt)
6365

64-
# %%
66+
# %%
6567
# 3. Mixed type model selection
6668
# ---------------------------------------------------------------
6769
# Let us now compare these three aproaches by measuring their ability to impute uniformly

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@
3333
"category_encoders",
3434
"dcor>=0.6",
3535
"hyperopt",
36-
"numpy>=1.19",
36+
"numpy>=1.21",
3737
"packaging",
3838
"pandas>=1.3",
3939
"scikit-learn",
4040
"scipy",
4141
"statsmodels>=0.14",
42+
"typing-extensions",
4243
]
4344
EXTRAS_REQUIRE = {
4445
"tests": ["flake8", "mypy", "pandas", "pytest", "pytest-cov", "typed-ast"],
@@ -47,7 +48,6 @@
4748
"sphinx",
4849
"sphinx-gallery",
4950
"sphinx_rtd_theme",
50-
"typing_extensions",
5151
],
5252
"pytorch": [
5353
"torch==2.0.1",

0 commit comments

Comments
 (0)