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

calibration_check não consegue fazer a análise com dataframe com y categórico #27

Closed
fbarth opened this issue Nov 4, 2022 · 0 comments · Fixed by #47
Closed

calibration_check não consegue fazer a análise com dataframe com y categórico #27

fbarth opened this issue Nov 4, 2022 · 0 comments · Fixed by #47
Labels
bug Something isn't working enhancement New feature or request

Comments

@fbarth
Copy link
Collaborator

fbarth commented Nov 4, 2022

Ao executar calibration_check(model, df_full, 'diagnosis') onde df_full['diagnosis'] tem valores 'B' ou "M', a função calibration_check(model, df_full, 'diagnosis') retorna o seguinte erro:

ValueError: y_true takes value in {'B', 'M'} and pos_label is not specified: either make y_true take value in {0, 1} or {-1, 1} or pass pos_label explicitly.

Sugiro propagar o atributo pos_label da função brier_score_loss para a função calibration_check.

@fbarth fbarth added bug Something isn't working enhancement New feature or request labels Nov 4, 2022
@williamars williamars linked a pull request Nov 23, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant