Mosè Giordano

Results 674 comments of Mosè Giordano

I'm aware of some issues with Optim.jl, but due to a bug in that package: https://github.com/JuliaNLSolvers/Optim.jl/issues/823. I believe Measurements.jl can't work with ForwardDiff because of the limitations of the latter...

That's not the problem, the culprit is ForwardDiff being unable to deal with anything more specific than `Real`, the `StackOverflowError` you see is only of symptom of their limitation. Quoting...

That's extremely bizarre, but since `Measurements` isn't directly involved apart from loading it (and thus adding a new data type) my guess is that `BlackBoxOptim` is doing something fishy with...

BTW, in https://github.com/JuliaNLSolvers/Optim.jl/issues/823 I had some suggestions about how to fix `Optim.jl` (those are genuinely issues in the package, unrelated to `Measurements.jl`). If you're interested in using `Optim.jl` together with...

For the record, `BlackBoxOptim` seems to go haywire because of this `log(::Real, ::Measurement)` method https://github.com/JuliaPhysics/Measurements.jl/blob/e71f5203ee70fd66057d349855b604db126d4a55/src/math.jl#L619-L622 but frankly I don't see how that would be relevant since it isn't called at...

> how did you track down the BlackBoxOptim.jl issue to those lines? [Binary search](https://en.wikipedia.org/wiki/Binary_search_algorithm): I commented half of the code of `Measurements.jl` until I couldn't trigger the error, then repeat...

Different approach in [`dispatch-on-constant`](https://github.com/giordano/Measurements.jl/tree/dispatch-on-constant) branch: no new type, the only change is the dispatch of `result` for 1-arg functions is based on constants (`Val{...}`), but this isn't very fast. The...

The reason why that I never went on with this idea is that it creates lots of type-instabilities, or it makes it more likely to have inhomogeneous containers which include...

Yes, I'm aware that for large calculations the performance is not ideal. Try computing the mean of a large vector :persevere: However, for a large set of uncorrelated measurements there...

> what is often needed is just simple uncertainty propagation with independent observations It's not that simple. If `x` is a measurement, `f(x)` is a quantity correlated with `x`, then...