Instance Property

type

The underlying type of the column.

Declaration

var type: MLDataValue.ValueType { get }

Discussion

Use this to determine the underlying type of the column. Then use a corresponding property or method to create an MLDataColumn of the untyped column. For example, if type is equal to MLDataValue.ValueType.double, then use the MLUntypedColumn doubles property.

See Also

Exposing the Underlying Type to Generate a Data Column

var ints: MLDataColumn<Int>?

A cloned data column of integers.

var doubles: MLDataColumn<Double>?

A cloned data column of doubles.

var strings: MLDataColumn<String>?

A cloned data column of strings.

var sequences: MLDataColumn<MLDataValue.SequenceType>?

A cloned data column of machine learning sequences.

var dictionaries: MLDataColumn<MLDataValue.DictionaryType>?

A cloned data column of machine learning dictionaries.

var multiArrays: MLDataColumn<MLDataValue.MultiArrayType>?

A cloned data column of machine learning multi-arrays.

func column<T>(type: T.Type) -> MLDataColumn<T>?

Clones the column to a data column of the given type.