MLDataValue
The value of a cell in a data table.
Declaration
enum MLDataValueOverview
The MLDataValue enumeration is the fundamental type that you use to store training data in a table. Classifiers use data values to store information like evaluation metrics. Data values wrap all of the possible data types you can use with Create ML.
To access the underlying information in a data value, you can use the properties that correspond to the type’s enumeration cases. If you aren’t sure which kind of value a data value wrapper contains, use a switch statement to unwrap the value, or check the value of the type property.
Topics
Converting between types and data values
Creating a data value
MLDataValue.int(_:)MLDataValue.double(_:)MLDataValue.string(_:)MLDataValue.dictionary(_:)MLDataValue.sequence(_:)MLDataValue.multiArray(_:)