One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

OneHotEncoder

struct · iOS 16.0+ · SDK 27.1

struct OneHotEncoder<Category> where Category : Comparable, Category : Decodable, Category : Encodable, Category : Hashable

An estimator that encodes categorical values to an integer array. The encoded array has an element count equal to the number of categories to encode. The encoded array for a given category has repeating zero values except at one index where the value is 1.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

OneHotEncoder.init()

The containing type needs Swift generic type arguments. (no canonical witness for Category)

OneHotEncoder.fitted(to:eventHandler:)

This declaration needs Swift generic type arguments. (no canonical witness for Category)

OneHotEncoder.update(_:with:eventHandler:)

The containing type needs Swift generic type arguments. (no canonical witness for Category)

All CreateMLComponents types →