question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

use log1p in logsumexp

See original GitHub issue

I’m guessing that, analogous to #1204, we should use log1p in logsumexp if possible (though it might not be).

@majnemer any specific advice on this one?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
zhongwencommented, Aug 18, 2019

This might explain certain numerical issues when we are using logsoftmax thus logsumexp.

1reaction
rbrishabhcommented, Aug 17, 2019

I would like to take this up as my first contribution! Of course, after @majnemer gives his advice on this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is the Log-Sum-Exp Function? - Nick Higham
The log-sum-exp function takes as input a real $latex n$-vector $latex x$ and returns the scalar $latex \notag ... we can take any...
Read more >
Where do I learn about log_sum_exp, log1p, lccdf, and other ...
I was helping a colleague recently fix his MATLAB code by using log_sum_exp and log1m tricks. The natural question he had was, “where...
Read more >
Accurately computing the log-sum-exp and softmax functions
Evaluating the log-sum-exp function or the softmax function is a key step in many modern data science algorithms, notably in inference and classification....
Read more >
Python Examples of torch.log1p - ProgramCreek.com
This page shows Python examples of torch.log1p.
Read more >
LogSumExp Function - Amazon AWS
... in the exponential in the second term is centered, and can be calculated using the R command log1p . See also: logsumexp...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found