Skip to content

Commit fd2390b

Browse files
author
Github Actions
committed
Neeratyoy Mallik: Adding helper functions to support ColumnTransformer (#982)
1 parent e75af7f commit fd2390b

175 files changed

Lines changed: 866 additions & 756 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

develop/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: fbe988eb3582ca246bb81ab0b775fcd7
3+
config: 916e7408cab0414f9d499b4504128786
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

develop/_downloads/27f49b0e36fba2fe65360adcf060e098/2015_neurips_feurer_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"name": "python",
9090
"nbconvert_exporter": "python",
9191
"pygments_lexer": "ipython3",
92-
"version": "3.8.6"
92+
"version": "3.8.7"
9393
}
9494
},
9595
"nbformat": 4,

develop/_downloads/296bc5731c400ca6e06e54ecb9b84b5c/configure_logging.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"name": "python",
5454
"nbconvert_exporter": "python",
5555
"pygments_lexer": "ipython3",
56-
"version": "3.8.6"
56+
"version": "3.8.7"
5757
}
5858
},
5959
"nbformat": 4,

develop/_downloads/4076733b22158deda2a79e57d217b001/2018_kdd_rijn_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"name": "python",
8383
"nbconvert_exporter": "python",
8484
"pygments_lexer": "ipython3",
85-
"version": "3.8.6"
85+
"version": "3.8.7"
8686
}
8787
},
8888
"nbformat": 4,

develop/_downloads/42ecf9b9ca30a385452934aeb1a420d5/2018_neurips_perrone_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"name": "python",
148148
"nbconvert_exporter": "python",
149149
"pygments_lexer": "ipython3",
150-
"version": "3.8.6"
150+
"version": "3.8.7"
151151
}
152152
},
153153
"nbformat": 4,

develop/_downloads/4e36450a7c3d3fe8c9f4e71689c8e677/plot_svm_hyperparameters_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"name": "python",
137137
"nbconvert_exporter": "python",
138138
"pygments_lexer": "ipython3",
139-
"version": "3.8.6"
139+
"version": "3.8.7"
140140
}
141141
},
142142
"nbformat": 4,

develop/_downloads/4ff7bd62b4b1b9012f431cd3c21d497d/study_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"name": "python",
180180
"nbconvert_exporter": "python",
181181
"pygments_lexer": "ipython3",
182-
"version": "3.8.6"
182+
"version": "3.8.7"
183183
}
184184
},
185185
"nbformat": 4,

develop/_downloads/51e951fb65905058a563b0f066ec5771/2018_ida_strang_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"name": "python",
119119
"nbconvert_exporter": "python",
120120
"pygments_lexer": "ipython3",
121-
"version": "3.8.6"
121+
"version": "3.8.7"
122122
}
123123
},
124124
"nbformat": 4,

develop/_downloads/55fed401604e83ceb83e08221c96c779/fetch_evaluations_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"name": "python",
155155
"nbconvert_exporter": "python",
156156
"pygments_lexer": "ipython3",
157-
"version": "3.8.6"
157+
"version": "3.8.7"
158158
}
159159
},
160160
"nbformat": 4,

develop/_downloads/6b1e091fbd3ac8d106b6552c91cf05cc/run_setup_tutorial.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
import numpy as np
3636
import openml
37+
from openml.extensions.sklearn import cat, cont
38+
3739
from sklearn.pipeline import make_pipeline, Pipeline
3840
from sklearn.compose import ColumnTransformer
3941
from sklearn.impute import SimpleImputer
@@ -57,15 +59,6 @@
5759
# easy as you want it to be
5860

5961

60-
# Helper functions to return required columns for ColumnTransformer
61-
def cont(X):
62-
return X.dtypes != "category"
63-
64-
65-
def cat(X):
66-
return X.dtypes == "category"
67-
68-
6962
cat_imp = make_pipeline(
7063
SimpleImputer(strategy="most_frequent"),
7164
OneHotEncoder(handle_unknown="ignore", sparse=False),

0 commit comments

Comments
 (0)