Practicing Machine Learning Interview Questions in Python
Lisa Stuart
Data Scientist
# decision tree
`sklearn.tree.DecisionTreeClassifier`
# random forest
`sklearn.ensemble.RandomForestClassifier`
# cross-validated grid search
`sklearn.model_selection.GridSearchCV`
# model accuracy
`sklearn.metrics.accuracy_score`
# train/test split function
`sklearn.model_selection.train_test_split`
# Parameters that gave best results
`cross-val_model.best_params_`
# Mean cross-validated score of
# estimator with best params
`cross-val_model.best_score_`
Practicing Machine Learning Interview Questions in Python