Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c59a310

Browse filesBrowse files
DOC Fix typos plot_column_transformer_mixed_types.py (#19871)
1 parent c09c654 commit c59a310
Copy full SHA for c59a310

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎examples/compose/plot_column_transformer_mixed_types.py

Copy file name to clipboardExpand all lines: examples/compose/plot_column_transformer_mixed_types.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@
147147

148148
# %%
149149
# The resulting score is not exactly the same as the one from the previous
150-
# pipeline becase the dtype-based selector treats the ``pclass`` columns as
151-
# a numeric features instead of a categorical feature as previously:
150+
# pipeline because the dtype-based selector treats the ``pclass`` column as
151+
# a numeric feature instead of a categorical feature as previously:
152152

153153
selector(dtype_exclude="category")(X_train)
154154

@@ -201,7 +201,7 @@
201201
# %%
202202
# The best hyper-parameters have be used to re-fit a final model on the full
203203
# training set. We can evaluate that final model on held out test data that was
204-
# not used for hyparameter tuning.
204+
# not used for hyperparameter tuning.
205205
#
206206
print(("best logistic regression from grid search: %.3f"
207207
% grid_search.score(X_test, y_test)))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.