Update src/onehot.jl

Co-Authored-By: Roger-luo <hiroger@qq.com>
This commit is contained in:
Mike J Innes 2019-04-26 18:09:14 +08:00 committed by GitHub
parent fabcd05ff2
commit 6c3a939133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ end
onehot(l, labels[, unk])
Create an [`OneHotVector`](@ref) wtih `l`-th element be `true` based on possible `labels` set.
If `unk` is given, it retruns `onehot(unk, labels)` if the input label `l` is not find in `labels` or
If `unk` is given, it retruns `onehot(unk, labels)` if the input label `l` is not find in `labels`; otherwise
it will error.
## Examples