-
Notifications
You must be signed in to change notification settings - Fork 191
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
Comments
Hi Jundong,
Thanks for your email! This is because the model (ContraWR) doesn’t return logit yet. We haven’t got to push the changes that require all PyHealth model to return this necessary information.
We are pushing an update now for other existing models – if you need it immediately you could manually change ContraWR’s forward method by adding something like https://github.com/sunlabuiuc/PyHealth/blob/3aec5f214e9f5e38b987b6fa9f13443abd3ec3fd/pyhealth/models/sparcnet.py#L345.
Best,
Zhen
|
[Update] Thanks, we made changes to the ContraWR model. Please pull the new changes, and the error should be gone. |
Thank you, Chaoqi and Zhan.
获取 Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Chaoqi Yang ***@***.***>
Sent: Wednesday, April 12, 2023 8:54:41 AM
To: sunlabuiuc/PyHealth ***@***.***>
Cc: Dr. LIU Jundong ***@***.***>; Author ***@***.***>
Subject: [Ext] Re: [sunlabuiuc/PyHealth] KeyError: 'logit' (Issue #129)
This email originated from outside of City University of Hong Kong. Do not reply, click links, or open attachments unless you confirm the identity of the sender and know that the content is safe.
Closed #129<#129> as completed.
―
Reply to this email directly, view it on GitHub<#129 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMPCDZMBIHAQSCWMSCJA3ZTXAX4NDANCNFSM6AAAAAAW2M4JNY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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))
Any advice? Thank you.
The text was updated successfully, but these errors were encountered: