This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dimension Learning | |
classification.plot_model(classification_dt, plot = 'feature') | |
# Confusion Matrix | |
classification.plot_model(classification_dt, plot = 'confusion_matrix') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Precision Recall Curve | |
classification.plot_model(classification_dt, plot = 'pr') | |
# Validation Curve | |
classification.plot_model(classification_dt, plot = 'vc') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AUC-ROC plot | |
classification.plot_model(classification_dt, plot = 'auc') | |
# Decision Boundary | |
classification.plot_model(classification_dt, plot = 'boundary') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# compare performance of different classification models | |
classification.compare_models() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensemble: blending | |
blender = classification.blend_models(estimator_list=[classification_dt, classification_xgb]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ensemble boosting | |
boosting = classification.ensemble_model(classification_dt, method= 'Boosting') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build and tune the catboost model | |
tune_catboost = classification.tune_model('catboost') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build the xgboost model | |
classification_xgb = classification.create_model('xgboost') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build the decision tree model | |
classification_dt = classification.create_model('dt') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import the classification module | |
from pycaret import classification | |
# setup the environment | |
classification_setup = classification.setup(data= data_classification, target='Personal Loan') |