Instance Method

predictions(from:)

Predicts the target value from the provided data.

Declaration

func predictions(from data: MLDataTable) throws -> MLUntypedColumn

Parameters

data

The data you want the model to make predictions from.

Return Value

A column of values predicted by the regressor.

Discussion

If the supplied data doesn't match the expected columns (noted by the featureColumns property), this method throws an MLCreateError.type(reason:).