OneHot.jl

Documentation for OneHot.jl

OneHot.OneHotArrayType
OneHotArray

A type to hold a one-hot encoded array efficiently. Implements efficient matrix multiplication.

source
OneHot.argmax_Method
argmax_(A; dims)

Index of maximum elements of A over given dims, dropping the reduced dims.

source
OneHot.decodeMethod
decode(X)

Takes a binary array X of size (q, ) and returns an integer array A of size () such that OneHot.encode(A, 1:q) == X.

source
OneHot.encodeFunction
encode(data, labels)

Returns a one-hot encoded version of data, where classes are indexed according to labels.

source