gdkrmr / WeightedOnlineStats.jl

Weighted version of OnlineStats.jl
MIT License
10 stars 4 forks source link

WeightedCovMatrix with missing values fails. #29

Closed gdkrmr closed 5 years ago

gdkrmr commented 5 years ago
x = convert(Matrix{Union{Float64, Missing}}, randn(300, 10))
x[1, 1] = missing

fit!(WeightedCovMatrix(Float64), x, repeat([1.0], 300))

fails because eachrow returns a view, which makes _fit!(WeightedCovMatrix, ...) dispatch to the wrong methods.