Skip to content

Commit 716c36b

Browse files
committed
ignore unknown categories in OHE in unittest
1 parent 54547c5 commit 716c36b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_flows/test_flow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ def test_sklearn_to_upload_to_flow(self):
209209
y = iris.target
210210

211211
# Test a more complicated flow
212-
ohe = sklearn.preprocessing.OneHotEncoder(categorical_features=[1])
212+
ohe = sklearn.preprocessing.OneHotEncoder(categorical_features=[1],
213+
handle_unknown='ignore')
213214
scaler = sklearn.preprocessing.StandardScaler(with_mean=False)
214215
pca = sklearn.decomposition.TruncatedSVD()
215216
fs = sklearn.feature_selection.SelectPercentile(

0 commit comments

Comments
 (0)