StochasticAD.jl
StochasticAD.jl copied to clipboard
Add tests for propagate
Added two new tests of propagate that check if finite perturbations returned by functions upon normal calls are treated correctly by propagate
.
- Adding two stochastic triples together, like in https://github.com/gaurav-arya/StochasticAD.jl/issues/128#issue-2354290214; the way I'm constructing the stochastic triples may be nonstandard/bad practice though.
- Step-game-like example that @gaurav-arya provided in https://github.com/gaurav-arya/StochasticAD.jl/pull/132. It's a statistical test so it can fail, but I set some pretty wide margins (basically 10 sigma) so it should be quite rare I think. Let me know if this is what you had in mind.
I'm open to suggestions!
I expect the tests for this PR to fail because there are still the issues in #133 , probably that should be dealt with first before looking more closely at this one.