Initializer

init(from:)

Creates an array from a sequence wrapped in a data value.

Declaration

init?(from dataValue: MLDataValue)
Available when Element conforms to MLDataValueConvertible.

Discussion

Use this initializer to create an array by converting an MLDataValue with an underlying type of MLDataValue.SequenceType. You can confirm the data value’s underlying type by retrieving a non-nil value from sequenceValue or by inspecting the type property.

Relationships

See Also

Converting Between Arrays and Create ML Types

init(MLDataColumn<Element>)

Creates an array from a column in a machine learning data table.

init(MLUntypedColumn)

Creates an array from an untyped column in a machine learning data table.

var dataValue: MLDataValue

The array wrapped in a data value.

static var dataValueType: MLDataValue.ValueType

The underlying type an array uses when it wraps itself in a data value.