Car Evaluation Dataset

Car Evaluation
Dataset

The Car Evaluation Dataset from the UCI Machine Learning Repository contains 1,728 samples and 6 categorical attributes. It evaluates car acceptability based on factors such as price, maintenance, and safety, and is an introductory dataset for multiclass 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

A structured decision model dataset, suitable for learning multiclass classification and decision theory

🚗

Decision Model Data

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

🔤

Purely Categorical Features

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

🏷️

Four-Class Target

Cars are rated across four levels: unacc (unacceptable), acc (acceptable), good (good), and vgood (very good).

⚖️

Severe Class Imbalance

70% belong to the unacc class, while vgood accounts for only 3.8%, making it excellent 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.

🏛️

Authoritative UCI Source

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

Use Cases

From basic classification to decision theory research, with diverse application scenarios

🌲

Decision Tree Learning

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

🏷️

Multiclass Modeling

A four-class evaluation task for practicing multiclass algorithms such as SVM, KNN, and Naive Bayes

⚖️

Imbalance Handling

Clear class imbalance for practicing methods such as SMOTE and weighted loss

🔧

Ordinal Encoding

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

Multiclass Classification Decision Trees Ordinal Features Beginner Dataset Imbalanced Classification

Data Preview

Below are sample rows from 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

Get Started in 3 Quick Steps

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

01

Browse the Dataset

View dataset details on the Ace Data Cloud platform to learn about metadata such as field descriptions, sample size, and license agreement.

02

Download Data After Purchase

After purchase, download the ZIP delivery package, which includes the original CSV (52 KB), source attribution, and CC BY 4.0 license text; field names are added to the official headerless CSV data.

03

Load and Analyze

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

Start Exploring Car Evaluation Data

A classic multiclass dataset with previewable license information and data samples, available for download after purchase. Its hierarchical decision structure makes it an ideal introductory dataset for decision tree learning.