Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atualização do Sklearn para plot de ROC curve #10

Open
rafapy opened this issue Jun 3, 2024 · 0 comments
Open

Atualização do Sklearn para plot de ROC curve #10

rafapy opened this issue Jun 3, 2024 · 0 comments

Comments

@rafapy
Copy link

rafapy commented Jun 3, 2024

Após a atualização 1.2 do Sklearn, o comando para plotar a curva ROC, conforme descrito no livro, deixou de funcionar.
O trecho do livro em questão é:

**from sklearn.metrics import plot_roc_curve

plot_roc_curve(gs_log_reg, X_test, y_test);**

Não sei se é a melhor, mas segue a solução que encontrei para obter o mesmo plot:

**from sklearn.metrics import RocCurveDisplay

RocCurveDisplay.from_estimator(gs_log_reg, X_test, y_test)**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant