In this recipe, let's see how we can apply classification techniques to a real-world problem. We will use a dataset that contains some details about cars, such as number of doors, boot space, maintenance costs, and so on. Our goal is to determine the quality of the car. For the purposes of classification, quality can take four values: unacceptable, acceptable, good, or very good.
Evaluating cars based on their characteristics
Getting ready
You can download the dataset at https://archive.ics.uci.edu/ml/datasets/Car+Evaluation.
You need to treat each value in the dataset as a string. We consider six attributes in the dataset. Here are the attributes along with the possible values they can take:
- buying: These will be vhigh...