Closed colinxs closed 4 years ago
just remove all the overloads for now
Please don't, I have packages that critically depend on these things being optimized for VectorOfSimilarVectors
(it's doing the right thing there).
However, I'd be fine with falling back to the default implementation for anything that can't be easily handled by running the stats functions on the flat view.
I should've clarified, I meant just removing the incorrect overloads for now, rather than patching them, as the proper fix will change things anyways :)
So, the whole thing was a bit of a mess. I've cleaned this up now, have a look at #12.
I think I need to submit a few PRs to StatsBase, too, at some point, a lot of things that Statistics supports for vectors-of-vectors StatsBase does not (or incorrectly). See comments in new tests.
Closing this for now - I believe #12 now ensure same semantics as standard nested arrays for statistics functions (except where not defined for standard arrays). We can always revisit this, of course.
For future reference, this is also related to JuliaStats/StatsBase.jl#518.
(copied from Slack)
Here's one example:
I think the fix for this one is easy: just remove all the overloads for now. If we continue with the plan to merge SpecialArrays/JuliennedArrays here then how dims is handled changes anyways since they both support slicing along arbitrary dimensions and not just the first M.