GridSearchCV(cv=10,
estimator=Pipeline(steps=[('columntransformer',
ColumnTransformer(transformers=[('standardscaler',
StandardScaler(),
['Age',
'RestBP',
'Chol',
'RestECG',
'MaxHR',
'Oldpeak',
'Slope',
'Ca']),
('passthrough',
'passthrough',
['Sex',
'Fbs',
'ExAng']),
('onehotencoder',
OneHotEncoder(handle_unknown='ignore'),
['ChestPain',
'Thal'])])),
('randomforestclas...
param_grid={'randomforestclassifier__max_depth': [1, 3, 5, 7, 9],
'randomforestclassifier__max_features': [1, 2, 3, 4, 5,
6, 7],
'randomforestclassifier__n_estimators': [200]},
refit='accuracy',
scoring={'accuracy': 'accuracy',
'precision': make_scorer(precision_score, response_method='predict', pos_label=Yes),
'recall': make_scorer(recall_score, response_method='predict', pos_label=Yes)})
In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.