Contents

init(precisionRecall:excludingObserved:)

Creates metrics for a recommender, given a data table with precision and recall metric columns, and whether the recommender omitted training data.

Declaration

init(precisionRecall: MLDataTable, excludingObserved: Bool)

Discussion

Do not use this initializer. MLRecommender generates metrics for you when you call its evaluation(on:userColumn:itemColumn:ratingColumn:cutoffs:excludingObserved:) method.