Skip to content

Commit

Permalink
Merge pull request #41 from KristofferC/kc/16
Browse files Browse the repository at this point in the history
fix on (upcoming) 1.6, result of unique on range changed
  • Loading branch information
Evizero committed Nov 18, 2020
2 parents 99251b1 + ca50697 commit 3ffa2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/learnbase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ label and the second element the negative label.
0.0
"""
label(itr) = _arrange_label(unique(itr))
label(A::AbstractVector) = _arrange_label(unique(A))
label(A::AbstractVector) = _arrange_label(convert(Vector, (unique(A))))
label(A::AbstractArray{T,N}) where {T,N} = throw(MethodError(label, (A,)))
label(A::AbstractMatrix{<:Union{Number,Bool}}; obsdim = LearnBase.default_obsdim(A)) = label(A, convert(LearnBase.ObsDimension,obsdim))
label(A::AbstractMatrix{<:Union{Number,Bool}}, ::Union{ObsDim.Constant{2},ObsDim.Last}) = collect(1:size(A,1))
Expand Down

0 comments on commit 3ffa2c8

Please sign in to comment.