Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
Age
int64
Gender
int64
Air_Pollution
int64
Alcohol_use
int64
Dust_Allergy
int64
OccuPational_Hazards
int64
Genetic_Risk
int64
chronic_Lung_Disease
int64
Balanced_Diet
int64
Obesity
int64
Smoking
int64
Passive_Smoker
int64
Chest_Pain
int64
Coughing_of_Blood
int64
Fatigue
int64
Weight_Loss
int64
Shortness_of_Breath
int64
Wheezing
int64
Swallowing_Difficulty
int64
Clubbing_of_Finger_Nails
int64
Frequent_Cold
int64
Dry_Cough
int64
Snoring
int64
Level
class label
33
1
2
4
5
4
3
2
2
4
3
2
2
4
3
4
2
2
3
1
2
3
4
0Low
17
1
3
1
5
3
4
2
2
2
2
4
2
3
1
3
7
8
6
2
1
7
2
1Medium
35
1
4
5
6
5
5
4
6
7
2
3
4
8
8
7
9
2
1
4
6
7
2
2High
37
1
7
7
7
7
6
7
7
7
7
7
7
8
4
2
3
1
4
5
6
7
5
2High
46
1
6
8
7
7
7
6
7
7
8
7
7
9
3
2
4
1
4
2
4
2
3
2High
35
1
4
5
6
5
5
4
6
7
2
3
4
8
8
7
9
2
1
4
6
7
2
2High
52
2
2
4
5
4
3
2
2
4
3
2
2
4
3
4
2
2
3
1
2
3
4
0Low
28
2
3
1
4
3
2
3
4
3
1
4
3
1
3
2
2
4
2
2
3
4
3
0Low
35
2
4
5
6
5
6
5
5
5
6
6
6
5
1
4
3
2
4
6
2
4
1
1Medium
46
1
2
3
4
2
4
3
3
3
2
3
4
4
1
2
4
6
5
4
2
1
5
1Medium
44
1
6
7
7
7
7
6
7
7
7
8
7
7
5
3
2
7
8
2
4
5
3
2High
64
2
6
8
7
7
7
6
7
7
7
8
7
7
9
6
5
7
2
4
3
1
4
2High
39
2
4
5
6
6
5
4
6
6
6
6
6
6
5
3
2
4
3
1
7
5
6
1Medium
34
1
6
7
7
7
6
7
7
7
7
7
7
8
4
2
3
1
4
5
6
7
5
2High
27
2
3
1
4
2
3
2
3
3
2
2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
7
7
7
6
7
7
7
7
7
8
5
7
6
7
8
7
6
2
2High
28
1
6
7
7
7
7
6
7
7
7
8
7
7
5
3
2
7
8
2
4
5
3
2High
19
1
6
8
7
7
7
6
7
7
7
8
7
7
9
6
5
7
2
4
3
1
4
2High
29
2
4
5
6
5
5
4
6
7
2
3
4
8
8
7
9
2
1
4
6
7
2
2High
End of preview. Expand in Data Studio

Lung Cancer Risk Classification Dataset

Purpose

This dataset is designed for building machine learning models to predict the risk level of lung cancer based on patient demographics, lifestyle, and medical history.
It can be used for research, model training, and educational purposes in healthcare AI applications.
The dataset contains 23 input features and one target label (Level) with three classes:

  • Low (0)
  • Medium (1)
  • High (2)

Dataset Guide

Features

Feature Name Type Description
Age int Patient age
Gender int Gender encoded as 0/1
Air_Pollution int Exposure to air pollution
Alcohol_use int Alcohol consumption indicator
Dust_Allergy int Presence of dust allergy
OccuPational_Hazards int Occupational hazards exposure
Genetic_Risk int Genetic risk factor
chronic_Lung_Disease int History of chronic lung disease
Balanced_Diet int Balanced diet indicator
Obesity int Obesity indicator
Smoking int Smoking habit indicator
Passive_Smoker int Exposure to passive smoking
Chest_Pain int Chest pain indicator
Coughing_of_Blood int Presence of blood in cough
Fatigue int Fatigue indicator
Weight_Loss int Weight loss indicator
Shortness_of_Breath int Shortness of breath indicator
Wheezing int Wheezing indicator
Swallowing_Difficulty int Difficulty swallowing indicator
Clubbing_of_Finger_Nails int Clubbing of finger nails indicator
Frequent_Cold int Frequency of colds
Dry_Cough int Dry cough indicator
Snoring int Snoring indicator
Level class Target label: 0=Low, 1=Medium, 2=High

Recommended Usage

  1. Load the dataset using the datasets library:
from datasets import load_dataset

dataset = load_dataset("edcelbogs/lung-cancer-classification")



### Prepare for training in TensorFlow or PyTorch:

#Example Convert to TensorFlow dataset:

tf_dataset = dataset["train"].to_tf_dataset(
    columns=[c for c in dataset["train"].column_names if c != "Level"],
    label_cols="Level",
    shuffle=True,
    batch_size=32
)
Downloads last month
3