Open renatobellotti opened 2 years ago
I guess it would have to live in StatsBase. But you'll have to ping ChainRules or Zygote developers to review the PR as I'm not familiar with these.
I can just note that percentile
is just a convenience function calling quantile
so both should probably be treated the same way. Also relevant is that multiple definitions of quantile are supported (depending on passed keyword arguments) and I'm not sure how ChainRules handles that.
Thanks for your answer. I was able to solve my problem without relying on percentile()
/quantile()
. I will leave this open in case somebody needs it in the future.
I would like to suggest a Zygote rrule for the
StatsBase.jl
function. I'm not sure whether to post this in the Zygote or in this repo, so please let me know if this is the wrong place.I'm happy to hear your thoughts!