Skip to content

Commit

Permalink
Merge pull request #61 from JuliaAI/docfixes
Browse files Browse the repository at this point in the history
correct docstring of  kernel
  • Loading branch information
OkonSamuel authored Oct 21, 2023
2 parents eb29518 + b817252 commit df78159
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ julia = "1.6"
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
StatisticalMeasures = "a19d573c-0a75-4610-95b3-7071388c7541"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["MLJBase", "OffsetArrays", "StableRNGs", "Test"]
test = ["MLJBase", "OffsetArrays", "StableRNGs", "StatisticalMeasures", "Test"]
4 changes: 2 additions & 2 deletions src/kernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ end
"""
Rank()
Assigns each neighbor a weight as a rank such that the closest neighbor get's a weight of
`1` and the Kth closest neighbor gets a weight of `K`.
Assigns each neighbor a weight as a rank from `K` to `1` such that the closest neighbor get's a weight of
`K` and the Kth closest neighbor gets a weight of `1`.
For more information see the paper by Geler et.al [Comparison of different weighting
schemes for the kNN classifier on time-series data](https://perun.pmf.uns.ac.rs/
Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using NearestNeighborModels
using Distances
using StableRNGs
using StatisticalMeasures
using Test
using MLJBase
using OffsetArrays
Expand Down

0 comments on commit df78159

Please sign in to comment.