[FR] smoothed log sum implementation
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
The proposed change points to src/logsumexp.jl around line 90; read that implementation first and compare its current behavior with the issue's smoothed formula and linked equation 14. Determine the package's intended API and edge cases, then add coverage demonstrating the requested behavior.
Written by the indexing model from the issue text.
Description
thanks for this cool little package. I have a feature request/question. In discrete choice models (for example in this paper equation 14 ) we often have a smoothed version of the log sum function. that is, instead of
alpha + log( sum (exp( x - alpha ) ) )
we'd have
alpha + σ log( sum (exp( (x - alpha)/σ ) ) )
I was trying to think how to add this to the package (maybe in my own fork if this turns out non of interest here), but I'm not totally sure where. My best guess would have been to do the division by sigma in places like here, but not totally certain. thanks for any hints!
- Dominant language
- Julia
- Stars
- 86
- Forks
- 25
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaStats/LogExpFunctions.jl
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
JuliaStats/LogExpFunctions.jl#134 · 2 comments ·
-
Precision loss for BigFloat in logexpm1, logcosh and log1pmxPossibly taken @devmotion claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 30/100
JuliaStats/LogExpFunctions.jl#135 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JuliaStats/LogExpFunctions.jl#102 · 4 comments ·
-
exp-weighted meanOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
log-cumsum-exp ?Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in JuliaStats/LogExpFunctions.jl
Similar issues
-
code bug PowerSystems 6.0
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Sienna-Platform/PowerSystems.jl#1849 ·
Maintainers usually reply within 7 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FluxML/Metalhead.jl#407 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100