Comments (11)
I can see how your version will be faster because it avoids the exp(-x)
in oftype(exp(-x), x)
. You may consider adding
log1pexp_v2(x::Number) = log1pexp_v2(float(x))
to get coverage for integer arguments.
from logexpfunctions.jl.
I would do log1pexp_v2(x::Real) = log1pexp_v2(float(x))
, since we don't want to cover complex arguments.
from logexpfunctions.jl.
You're right. That's better.
from logexpfunctions.jl.
Should I prepare a PR on this?
from logexpfunctions.jl.
Yes, please.
from logexpfunctions.jl.
@dmbates Please see JuliaStats/StatsFuns.jl#70
from logexpfunctions.jl.
If I may ask, what's the current state of this?
from logexpfunctions.jl.
I don't know, I just transferred the issue when log1pexp
was moved from StatsFuns to LogExpFunctions. @cossio, do you plan to open a PR to LogExpFunctions that preferably also addresses the comments in JuliaStats/StatsFuns.jl#70?
from logexpfunctions.jl.
JuliaStats/StatsFuns.jl#70 was just closed, but a PR here is welcome.
from logexpfunctions.jl.
I'll do a PR right after #35 is done.
from logexpfunctions.jl.
Great, thanks!
from logexpfunctions.jl.
Related Issues (20)
- Softmax segfaults with offset arrays HOT 3
- Add `logsumexp!(r, X)` (which behaves like sum!) HOT 1
- xexpx(z) HOT 1
- [FR] smoothed log sum implementation HOT 1
- Weighted logsumexp HOT 1
- logcosh HOT 12
- logsumexp(::SVector) allocates HOT 5
- clarify ChainRulesCore.jl integration
- `log1pmx` and `logmxp1` cannot be differentiated by `ForwardDiff` HOT 7
- `log1pmx`and `logmxp1` are probably not optimized for `Float32` and `Float16`
- `logabsgamma` doesn't work with ForwardDiff HOT 2
- Register? HOT 2
- logsoftmax
- `logsumexp(f, x)` (and `logsumexp!(f, out, x)`) HOT 1
- Issue with `logsumexp` with ForwardDiff (and -Inf values) HOT 1
- logaddexp introduces NaNs for non-finite values HOT 1
- 1.9-beta4 Extension errors: HOT 2
- Error during loading of extension HOT 1
- TagBot trigger issue HOT 33
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logexpfunctions.jl.