Car Evaluation Dataset

Car Evaluation
Dataset

The car evaluation dataset from the UCI Machine Learning Repository contains 1,728 samples and 6 categorical attributes, assessing car acceptability based on factors such as price, maintenance, and safety, making it an introductory dataset for multi-class learning.

1,728 samples 7 features CC BY 4.0 license M. Bohanec (1997)
Car Evaluation Dataset
📊
1,728
Total Samples
🔬
7
Feature Dimensions
🚗
4
Evaluation Levels
📜
CC BY 4.0
Open License Agreement

Dataset Highlights

Structured decision model dataset, suitable for learning multi-class classification and decision theory

🚗

Decision Model Data

Data generated based on a hierarchical decision model, covering evaluation dimensions such as purchase price, maintenance cost, comfort, and safety.

🔤

Pure Classification Features

All 6 input features are ordered categorical variables (low/med/high/vhigh), suitable for learning ordinal encoding.

🏷️

Four-Class Target

Car evaluations are classified into four levels: unacc (unacceptable), acc (acceptable), good, and vgood (very good).

⚖️

Severely Imbalanced Classes

70% are unacc class, with vgood only accounting for 3.8%, making it a good material for learning imbalanced classification problems.

🌲

Ideal Data for Decision Trees

The hierarchical decision structure makes it a perfect dataset for learning decision trees and rule extraction.

🏛️

UCI Authoritative Source

Originating from the UCI Machine Learning Repository, designed by Marko Bohanec based on decision theory.

Applicable Scenarios

Diverse application scenarios from basic classification to decision theory research

🌲

Decision Tree Learning

The hierarchical attribute structure is very suitable for learning decision tree and rule extraction algorithms

🏷️

Multi-Class Modeling

Four-class evaluation task, practice SVM, KNN, Naive Bayes, and other multi-class algorithms

⚖️

Imbalance Handling

Significant class imbalance, practice SMOTE, weighted loss, and other handling methods

🔧

Ordinal Encoding

Ordered categorical features are suitable for practicing ordinal encoding and feature engineering techniques

Multi-Class Decision Tree Ordinal Features Beginner Dataset Imbalanced Classification

Data Preview

The following are examples of the first few rows of the car evaluation dataset

CSV
buying,maint,doors,persons,lug_boot,safety,class
vhigh,vhigh,2,2,small,low,unacc
vhigh,vhigh,2,2,small,med,unacc
vhigh,vhigh,2,2,small,high,unacc
vhigh,vhigh,2,2,med,low,unacc
vhigh,vhigh,2,2,med,med,unacc
vhigh,vhigh,2,2,med,high,unacc
vhigh,vhigh,2,2,big,low,unacc
vhigh,vhigh,2,2,big,med,unacc
vhigh,vhigh,2,2,big,high,unacc

3 Steps to Get Started

From browsing to analysis, you can start your data science project in minutes

01

Browse the Dataset

View dataset details on the Ace Data Cloud platform, including field descriptions, sample size, and licensing information.

02

Download Data

Download the CSV file (52 KB), data is ready to use without additional cleaning.

03

Load and Analyze

Use pandas.read_csv() to load the data, along with OrdinalEncoder to encode ordinal categorical features.

Start Exploring the Car Evaluation Data

A classic multi-class dataset with open licensing, available for immediate download. The hierarchical decision structure makes it the best introductory dataset for decision tree learning.