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

KeyError: 'logit' #129

Closed
bbb801 opened this issue Apr 11, 2023 · 3 comments
Closed

KeyError: 'logit' #129

bbb801 opened this issue Apr 11, 2023 · 3 comments

Comments

@bbb801
Copy link

bbb801 commented Apr 11, 2023

Dear Sir/Madam,

I got an error when I ran the following codes (data is from Pipeline 5: Sleep Staging):

cal_model = HistogramBinning(model)

cal_model =KCal(model)

cal_model =TemperatureScaling(model)

cal_model.calibrate(cal_dataset=val_dataset)
from pyhealth.trainer import Trainer
print(Trainer(model=cal_model, metrics=['cwECEt_adapt', 'accuracy']).evaluate(test_loader))

image
image

Any advice? Thank you.

@zlin7
Copy link
Collaborator

zlin7 commented Apr 11, 2023 via email

@ycq091044
Copy link
Collaborator

[Update] Thanks, we made changes to the ContraWR model. Please pull the new changes, and the error should be gone.

@bbb801
Copy link
Author

bbb801 commented Apr 12, 2023 via email

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

3 participants