Breast Cancer Classification Using Decision Tree Classifier

A pipeline to classify breast tumors (malignant vs. benign) using a Decision Tree model on clinical feature data.

Back to All Projects

Project Overview

The notebook begins by loading the Breast cancer.csv dataset with pandas and displaying the first rows . It drops non-predictive columns (Unnamed: 32), encodes the target diagnosis (M → 1, B → 0) , and scales features with a MinMaxScaler. After splitting into train/test sets, it trains a DecisionTreeClassifier(random_state=42), then evaluates performance via accuracy, precision, recall, F1-score, and confusion matrix.

Category
Machine Learning
Completion Date
February 2025
Technologies
Python 3 & Jupyter Notebook train_test_split MinMaxScaler DecisionTreeClassifier accuracy_score precision_score recall_score f1_score confusion_matrix
File Preview (View Only)