Skip to content

Commit 2839a2f

Browse files
mcabbottdarsnack
andauthored
Update src/onehot.jl
Co-authored-by: Kyle Daruwalla <daruwalla.k.public@icloud.com>
1 parent 6c1c4e7 commit 2839a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/onehot.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ end
146146
"""
147147
onehotbatch(xs, labels, [default])
148148
149-
Returns a `OneHotMatrix` where `k`th column of the matrix is [`onehot(ls[k], labels)`](@ref onehot),
150-
for vector `xs`. This is a sparse matrix, which stores just `Vector{UInt32}` containing the indices.
149+
Returns a `OneHotMatrix` where `k`th column of the matrix is [`onehot(xs[k], labels)`](@ref onehot).
150+
This is a sparse matrix, which stores just a `Vector{UInt32}` containing the indices.
151151
152152
If one of the inputs in `xs` is not found in `labels`, that column is `onehot(default, labels)`
153153
if `default` is given, else an error.

0 commit comments

Comments
 (0)