The metric by which the recommender computes item similarity.


enum MLRecommender.SimilarityType


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.