applied(to:eventHandler:)
Performs a one-hot encoding on a single input.
Declaration
func applied(to input: Category?, eventHandler: EventHandler? = nil) throws -> [Int]Return Value
A one-hot encoded array.
Discussion
Parameters
input: A category to encode.
eventHandler: An event handler.