-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Project.toml and DataDep #138
Conversation
Bump AxisKeys and patch release number.
"https://www.dropbox.com/scl/fi/bgtfqea9qqoug42gcnnsl/datasets.tar.gz?rlkey=11xsae0wi32m8gcfxhbqgo030&dl=0", | ||
"cf1fff2e7f3ce28eb4264060bc7b9ee561bccfce2c5915c4cf758ec48477ddfe", | ||
fetch_method=DataDeps.fetch_base, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Dropbox view link. Bug @rofinn if there are issues.
- I don't know why the hash is different, but it's possible my local copy was slightly out-of-date
- HTTP.jl wasn't downloading the entire file for some reason, so we're using
Base.download
instead.
…tor to after condition.
@@ -73,13 +73,16 @@ function impute!(data::AbstractMatrix{Union{T, Missing}}, imp::KNN; dims=nothing | |||
|
|||
# Weight valid neighbors based on inverse distance | |||
neighbor_dists = dists[.!neighbor_mask] | |||
wv = weights(1.0 ./ neighbor_dists) | |||
|
|||
# Delay creating Weights as they don't support Inf or NaN anymore. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of #136 we can't call weights with a vector containing Inf
, so we're just computing the sum ourselves and calling Weights
for the weighted mean.
I'm guessing we need to drop 1.5 at some point. |
1.5 is pretty old and many of our deps aren't supporting it.
Bump AxisKeys and patch release number.