Contents

MLIdentifier

A type the Create ML framework can use as a machine learning identifier.

Declaration

protocol MLIdentifier

Overview

You can use any type that conforms to the MLIdentifier protocol, typically Int or String, to uniquely identify users and items in these MLRecommender methods:

recommendations(fromUsers:maxCount:restrictingToItems:excluding:excludingObserved:)

Topics

Getting an identifier

See Also

Testing a recommender