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

May be able to make temporal loss more stable by directly computing log-prob from pre-activation function outputs #93

Open
mmcdermott opened this issue Feb 19, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mmcdermott
Copy link
Owner

E.g., the exponential pdf given rate $\lambda$ is $\lambda e^{-\lambda x}$, so if $\lambda = e^{z}$ where $z$ is the projected output of the model, then we could just directly compute $NLL = z - x*e^z$.

@mmcdermott
Copy link
Owner Author

Similarly, we should use https://pytorch.org/docs/stable/generated/torch.nn.GaussianNLLLoss.html for the regression targets.

@mmcdermott
Copy link
Owner Author

Similarly, we should normalize the predicted outputs for TTE (labs are already normalized) to have zero log-mean and unit log-variance.

@mmcdermott mmcdermott added the enhancement New feature or request label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant