Contents

MLDataValue

The value of a cell in a data table.

Declaration

enum MLDataValue

Overview

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

Inspecting the type

Accessing numeric values

Accessing string values

Accessing dictionary values

Accessing array values

Comparing data values

Describing a data value

Handling errors

Default Implementations

See Also

Tabular data