Description

This project we do the model evaluation using scikit-plot library.

Ref: https://github.com/reiinakano/scikit-plot

Imports

Useful Scripts

Load the data

Model Predictions

Model Evaluation using scikit-plot

Plot Confusion Matrix

plot_confusion_matrix(
    y_true,
    y_pred,
    labels=None,
    true_labels=None,
    pred_labels=None,
    title=None,
    normalize=False,
    hide_zeros=False,
    hide_counts=False,
    x_tick_rotation=0,
    ax=None,
    figsize=None,
    cmap='Blues',
    title_fontsize='large',
    text_fontsize='medium',
)

Plot Precision-Recall Curve

plot_precision_recall_curve(
    y_true,
    y_probas,
    title='Precision-Recall Curve',
    curves=('micro', 'each_class'),
    ax=None,
    figsize=None,
    cmap='nipy_spectral',
    title_fontsize='large',
    text_fontsize='medium',
)

Plot ROC (AUC ROC)

plot_roc(
    y_true,
    y_probas,
    title='ROC Curves',
    plot_micro=True,
    plot_macro=True,
    classes_to_plot=None,
    ax=None,
    figsize=None,
    cmap='nipy_spectral',
    title_fontsize='large',
    text_fontsize='medium',
)

Total Time Taken