Multilabel classification model evaluation using Spark 2.0

In this recipe, we explore multilabel classification MultilabelMetrics in Spark 2.0 which should not be mixed up with the previous recipe dealing with multiclass classification MulticlassMetrics. The key to exploring this recipe is to concentrate on evaluation metrics such as Hamming loss, accuracy, f1-measure, and so on, and what they measure.

Get Apache Spark 2.x Machine Learning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.