You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2019. It is now read-only.
seems to assume that both the DataArray and the weight vector are of the same shape. However, it does not seem possible to create a Weights Vector with some shape information.
I would be happy to provide a PR with a fix, but wanted to ask before if this behavior is intended in some way...
The text was updated successfully, but these errors were encountered:
Thanks for the report. It seems logical to expect that the array and its weights have the same shape; else the correspondence between an element and its weight wouldn't be clear. The error message could be improved, though, and weights should probably accept any kind of array, not just vectors (they have recently been renamed from WeightsVec to Weights). Can you file an issue/PR against StatsBase?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am on julia 0.6. Currently the following results in a stack overflow:
because this code
DataArrays.jl/src/reduce.jl
Lines 178 to 185 in 8b9e896
seems to assume that both the DataArray and the weight vector are of the same shape. However, it does not seem possible to create a
Weights
Vector with some shape information.I would be happy to provide a PR with a fix, but wanted to ask before if this behavior is intended in some way...
The text was updated successfully, but these errors were encountered: