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
This is happening because StatsBase provides weighting by defining methods like mean(x, weights::AbstractWeights) but using @view makes weights a SubArray, so method that's called is mean(f, input) which is interpreting the vector as a function to call. The issue here is actually with StatsBase, which should probably be defining view/Base.maybeview on AbstractWeights to return something that is also <:AbstractWeights.
The text was updated successfully, but these errors were encountered: