Building and evaluating a machine learning model
Before we start writing a Python program, we will evaluate the process of building a machine learning model.
Learning about an ML model building process
We discussed the different components of machine learning in the Introducing machine learning section. The machine learning process uses those elements as input to train a model. This process follows a procedure with three main phases, and each phase has several steps in it. These phases are shown here:
Each phase, along with detailed steps of it, is described here:
- Data analysis: In this phase, we collect raw data and transform it into a form that can be analyzed and then used to train and test a model. We may discard some data, such as records with empty values. Through data analysis, we try to select the features (attributes) that can be used to identify patterns...