Pipeline(steps=[('preprocessor', ColumnTransformer(transformers=[('num', Pipeline(steps=[('SimpleImputer', SimpleImputer(strategy='median'))]), ['age', 'serum_bilirubin', 'serum_cholesterol', 'albumin', 'alkaline_phosphatase', 'SGOT', 'platelets', 'prothrombin_time']), ('cat', Pipeline(steps=[('SimpleImputer', SimpleImputer(strategy='most_frequent')), ('OneHotEnc... 'presence_of_hepatomegaly', 'presence_of_spiders']), ('ord', Pipeline(steps=[('SimpleImputer', SimpleImputer(strategy='most_frequent')), ('OrdinalEncoder', OrdinalEncoder(categories=[['0', '0.5', '1']]))]), ['presence_of_edema'])])), ('RandomForestClassifier', RandomForestClassifier(criterion='entropy', max_features=0.1, min_samples_leaf=6, min_samples_split=8))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preprocessor', ColumnTransformer(transformers=[('num', Pipeline(steps=[('SimpleImputer', SimpleImputer(strategy='median'))]), ['age', 'serum_bilirubin', 'serum_cholesterol', 'albumin', 'alkaline_phosphatase', 'SGOT', 'platelets', 'prothrombin_time']), ('cat', Pipeline(steps=[('SimpleImputer', SimpleImputer(strategy='most_frequent')), ('OneHotEnc... 'presence_of_hepatomegaly', 'presence_of_spiders']), ('ord', Pipeline(steps=[('SimpleImputer', SimpleImputer(strategy='most_frequent')), ('OrdinalEncoder', OrdinalEncoder(categories=[['0', '0.5', '1']]))]), ['presence_of_edema'])])), ('RandomForestClassifier', RandomForestClassifier(criterion='entropy', max_features=0.1, min_samples_leaf=6, min_samples_split=8))])
ColumnTransformer(transformers=[('num', Pipeline(steps=[('SimpleImputer', SimpleImputer(strategy='median'))]), ['age', 'serum_bilirubin', 'serum_cholesterol', 'albumin', 'alkaline_phosphatase', 'SGOT', 'platelets', 'prothrombin_time']), ('cat', Pipeline(steps=[('SimpleImputer', SimpleImputer(strategy='most_frequent')), ('OneHotEncoder', OneHotEncoder(drop='if_binary', handle_unknown='ignore', sparse=False))]), ['drug', 'sex', 'presence_of_asictes', 'presence_of_hepatomegaly', 'presence_of_spiders']), ('ord', Pipeline(steps=[('SimpleImputer', SimpleImputer(strategy='most_frequent')), ('OrdinalEncoder', OrdinalEncoder(categories=[['0', '0.5', '1']]))]), ['presence_of_edema'])])
['age', 'serum_bilirubin', 'serum_cholesterol', 'albumin', 'alkaline_phosphatase', 'SGOT', 'platelets', 'prothrombin_time']
SimpleImputer(strategy='median')
['drug', 'sex', 'presence_of_asictes', 'presence_of_hepatomegaly', 'presence_of_spiders']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='if_binary', handle_unknown='ignore', sparse=False)
['presence_of_edema']
SimpleImputer(strategy='most_frequent')
OrdinalEncoder(categories=[['0', '0.5', '1']])
RandomForestClassifier(criterion='entropy', max_features=0.1, min_samples_leaf=6, min_samples_split=8)