Merge #1211
1211: Fixing syntax in onehot docstring r=CarloLucibello a=natema `otherwise, it will error` -> `otherwise, it will raise an error` Co-authored-by: natema <natema@users.noreply.github.com>
This commit is contained in:
commit
792a1c54f8
|
@ -48,7 +48,7 @@ cudaconvert(x::OneHotMatrix{<:CuArray}) = OneHotMatrix(x.height, cudaconvert(x.d
|
|||
Create a `OneHotVector` with its `l`-th element `true` based on the
|
||||
possible set of `labels`.
|
||||
If `unk` is given, return `onehot(unk, labels)` if the input label `l` is not found
|
||||
in `labels`; otherwise it will error.
|
||||
in `labels`; otherwise, it will raise an error.
|
||||
|
||||
# Examples
|
||||
```jldoctest
|
||||
|
|
Loading…
Reference in New Issue