O'Reilly logo

Learning Apache Mahout by Chandramani Tiwary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Model efficacy

The main goal of model building in machine learning is generalization, which is how well the model will perform its intended objective. Generalization means how the model would perform on new unseen data, typically data in production. To estimate the generalization of a model, we need to test its performance based on unseen data. The mechanism to do it varies, depending upon the task at hand.

Classification

In this section, we will discuss the common ways to evaluate the efficacy of a classification model.

Confusion matrix

One of the most common and basic ways of evaluating a model's performance is by creating a confusion matrix and computing various metrics such as accuracy, precision, recall, and so on. We will start with an example ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required