Add logmeanexp
Nobody has claimed this yet.
- #120 by @cossio — closed without merging
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reviewing the existing logsumexp entry point and how dimension handling is implemented. Add logmeanexp with support for the dims keyword, then verify that its results match the intended log-mean-exp behavior for arrays and dimensions.
Written by the indexing model from the issue text.
Description
Hi,
I noticed that R and Python have logmeanexp. I think this would be a simple, yet useful addition. I would be willing to make a PR. The basic function would be
function logmeanexp(X::AbstractArray{<:Number})
return logsumexp(X) - log(length(X))
end
Some additional logic would be needed to handled the dims keyword.
- 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
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaDiff/ChainRules.jl#871 · 1 comment ·
Maintainers usually reply within 1 day
-
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