Skip to content

Commit 3ffa2c8

Browse files
authored
Merge pull request #41 from KristofferC/kc/16
fix on (upcoming) 1.6, result of unique on range changed
2 parents 99251b1 + ca50697 commit 3ffa2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/learnbase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ label and the second element the negative label.
4343
0.0
4444
"""
4545
label(itr) = _arrange_label(unique(itr))
46-
label(A::AbstractVector) = _arrange_label(unique(A))
46+
label(A::AbstractVector) = _arrange_label(convert(Vector, (unique(A))))
4747
label(A::AbstractArray{T,N}) where {T,N} = throw(MethodError(label, (A,)))
4848
label(A::AbstractMatrix{<:Union{Number,Bool}}; obsdim = LearnBase.default_obsdim(A)) = label(A, convert(LearnBase.ObsDimension,obsdim))
4949
label(A::AbstractMatrix{<:Union{Number,Bool}}, ::Union{ObsDim.Constant{2},ObsDim.Last}) = collect(1:size(A,1))

0 commit comments

Comments
 (0)