Enumeration

MLRecommender.SimilarityType

The metric by which the recommender computes item similarity.

Declaration

enum MLRecommender.SimilarityType

Topics

Similarity Types

case jaccard

The Jaccard similarity measure.

case cosine

The cosine similarity measure.

case pearson

The Pearson correlation similarity measure.

Similarity Type Descriptions

var description: String

A text representation of the similarity type.

var debugDescription: String

A text representation of the similarity type that’s suitable for output during debugging.

var playgroundDescription: Any

A description of the similarity type shown in a playground.

See Also

Recommender Algorithms

case itemSimilarity(MLRecommender.SimilarityType)

An algorithm that compares the similarity from item to item.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software