Skip to content

Commit

Permalink
doc: add util comment && identation (#4242)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmorais authored Jul 31, 2022
1 parent 9b577a6 commit 8861050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/outliers/alibi-detect-combiner/train_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from sklearn.compose import ColumnTransformer
from sklearn.ensemble import RandomForestClassifier


# make sure this directory or another, if you change, exists.
DATA_DIR = "pipeline/loanclassifier"


Expand Down Expand Up @@ -50,7 +50,7 @@ def train_preprocessor(data):
categorical_transformer = Pipeline(steps=[
('imputer', SimpleImputer(strategy='median')),
('onehot', OneHotEncoder(handle_unknown='ignore'))
])
])

preprocessor = ColumnTransformer(transformers=[
('num', ordinal_transformer, ordinal_features),
Expand Down

0 comments on commit 8861050

Please sign in to comment.