Instance Method

isAllowedValue(_:)

Checks whether the model will accept an input feature value.

Declaration

func isAllowedValue(_ value: MLFeatureValue) -> Bool

Parameters

value

Given the MLFeatureValue, is it compatible with the MLFeatureType of this MLFeatureDescription.

Return Value

True if the given MLFeatureValue is acceptable to the model's input feature, false otherwise.