<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLRecommender/ModelAlgorithmType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML",
      "CreateML"
    ],
    "preciseIdentifier" : "s:8CreateML13MLRecommenderV18ModelAlgorithmTypeO"
  },
  "title" : "MLRecommender.ModelAlgorithmType"
}
-->

# MLRecommender.ModelAlgorithmType

The algorithms a recommender can use to make recommendations.

```
enum ModelAlgorithmType
```

## Topics

### Recommender algorithms

[`case itemSimilarity(MLRecommender.SimilarityType)`](/documentation/CreateML/MLRecommender/ModelAlgorithmType/itemSimilarity(_:))

An algorithm that compares the similarity from item to item.

[`enum SimilarityType`](/documentation/CreateML/MLRecommender/SimilarityType)

The metric by which the recommender computes item similarity.

### Algorithm descriptions

[`var description: String`](/documentation/CreateML/MLRecommender/ModelAlgorithmType/description)

A text representation of the recommender algorithm.

[`var debugDescription: String`](/documentation/CreateML/MLRecommender/ModelAlgorithmType/debugDescription)

A text representation of the recommender algorithm that’s suitable for output during debugging.

[`var playgroundDescription: Any`](/documentation/CreateML/MLRecommender/ModelAlgorithmType/playgroundDescription)

A description of the recommender algorithm shown in a playground.

### Default Implementations

[CustomDebugStringConvertible Implementations](/documentation/CreateML/MLRecommender/ModelAlgorithmType/CustomDebugStringConvertible-Implementations)

[CustomPlaygroundDisplayConvertible Implementations](/documentation/CreateML/MLRecommender/ModelAlgorithmType/CustomPlaygroundDisplayConvertible-Implementations)

[CustomStringConvertible Implementations](/documentation/CreateML/MLRecommender/ModelAlgorithmType/CustomStringConvertible-Implementations)

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomPlaygroundDisplayConvertible`](/documentation/Swift/CustomPlaygroundDisplayConvertible)

[`Escapable`](/documentation/Swift/Escapable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Copyable`](/documentation/Swift/Copyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)