A type that can be converted to and from a value in a data table.
SDKs
- macOS 10.14+
- Xcode 10.0+
Framework
- Create ML
Declaration
protocol MLDataValueConvertible
Overview
A data table may contain an instance of any type that can be represented as an MLData
. The Array
and Dictionary
structures already conform to the MLData
protocol, but you can adopt this protocol in your own code as well.
When you create a data table from a dictionary of columns, you can use any data value-convertible type. The init(dictionary:)
initializer in MLData
automatically converts the column values you provide into data values.