Skip to content

OnePipelineManyClassifiers Section 13 does not have the right "y_pred_prob" used #149

@Okeoghene

Description

@Okeoghene

It occurred to me that the "print("AUC: ", roc_auc_score(y_test, y_pred_prob)" in section 13 doesn't have LogisticRegression predict_proba. The only other "y_pred_prob" is in section 11, and the line is y_pred_prob = nb.predict_proba(X_test_dtm)[:, 1], which is the Multinomial Naive Bayes predict_proba in Section 11.

"y_pred_proba = logreg.predict_proba(X_test_dtm)[:, 1]  # Get probability for class 1\n", 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions