威斯康星州乳腺癌诊断数据集
该数据集包含通过细针穿刺获取的乳腺肿块细胞核的多种形态学特征测量值(如半径、纹理、周长等),数据模态为临床表格数据,主要用于训练和评估机器学习模型以进行乳腺癌的良恶性诊断,是医学人工智能和病理学研究领域的经典基准数据集。

基本信息
资源简介
威斯康星州乳腺癌诊断数据集
【数据集背景】
本数据集源站标题为《CenturionEaz/Breast-Cancer-Detection-ML》。源站首次发布:2024-11-20。
【数据内容】
源站原始描述:"Machine Learning project for Breast Cancer Detection using the Breast Cancer Wisconsin Diagnosis dataset. Implements Logistic Regression, PCA, and EDA to classify cases as malignant or benign with high accuracy. Includes comprehensive visualizations, evaluation metrics, and predictive capabilities for new data." # **Breast Cancer Detection Project** ## **Objective** The primary goal of this project was to build a robust machine learning model to predict the diagnosis (benign or malignant) of br…
【获取与许可】
源站页面:https://github.com/CenturionEaz/Breast-Cancer-Detection-ML
使用许可:MIT。
下载信息
注册下载
需要注册 Kaggle 账号并登录后下载,适合需要跟踪下载记录和使用 API 的用户。
暂未开放公开下载
无需注册即可直接获取公开样本或文档,适合快速预览和评估数据集质量。
免登录有偿下载
公开数据集受托下载与技术交付服务。
提供高速下载与技术交付服务(收技术服务费,非数据销售)
暂未开放当前数据集主要来源为 Kaggle 公开托管,完整影像包建议通过原始链接或 Kaggle API 获取。
使用方式
数据集获取
git clone https://github.com/CenturionEaz/Breast-Cancer-Detection-ML.git
curl -L -o repo.zip https://github.com/CenturionEaz/Breast-Cancer-Detection-ML/archive/refs/heads/main.zip
unzip repo.zip
源站 README 摘录(使用方式)
Breast Cancer Detection Project
Objective
The primary goal of this project was to build a robust machine learning model to predict the diagnosis (benign or malignant) of breast cancer using the Breast Cancer Wisconsin Diagnosis dataset. The project employed exploratory data analysis (EDA), feature engineering, and machine learning modeling techniques to achieve high prediction accuracy while providing interpretability and insights.
Dataset Description
The dataset consists of measurements derived from fine-needle aspiration of breast masses. The key attributes include:
- Features such as radius, texture, perimeter, area, smoothness, etc., measured for different cell nuclei.
- Target variable
diagnosis, indicating whether the tumor is benign (B) or malignant (M).
Key Preprocessing Steps:
- Dropping unnecessary features: Features like
idwere dropped as they do not contribute to prediction. - Encoding target variable: The target variable
diagnosiswas encoded as0(benign) and1(malignant). - Feature scaling: Features were normalized to ensure uniform scaling, a critical step for models like logistic regression and k-NN.
Exploratory Data Analysis (EDA)
Correlation Heatmap
- Why this graph?: The heatmap was used to identify the correlation among features and between features and the target variable.
- Insights:
- Strong correlations observed among features like
radius_mean,perimeter_mean, andarea_mean. - High positive correlation of
concave points_meanwith the target variable. - Features with high multicollinearity were shortlisted for potential dimensionality reduction.
- Strong correlations observed among features like
Distribution of Target Classes
- Why this graph?: To analyze the balance of target classes.
- Insights: The dataset was slightly imbalanced, but no resampling was needed as the imbalance was minimal.
Feature Engineering
Principal Component Analysis (PCA)
- Why?: To address multicollinearity and reduce the dataset’'s dimensionality while retaining maximum variance.
- Outcome: PCA reduced the feature set to principal components that explained over 95% of the variance in the data.
Model Selection and Training
Several machine learning algorithms were explored, including:
- Logistic Regression
- k-Nearest Neighbors (k-NN)
- **Suppo
数据加载示例(图像类)
from PIL import Image
import glob, os
files = (glob.glob(os.path.join(path, "**", "*.png"), recursive=True)
+ glob.glob(os.path.join(path, "**", "*.jpg"), recursive=True)
+ glob.glob(os.path.join(path, "**", "*.tif"), recursive=True))
print("图像文件数:", len(files))
img = Image.open(files[0]); print("尺寸/模式:", img.size, img.mode)
# torchvision Dataset 方式:
# from torchvision import datasets
# ds = datasets.ImageFolder(path) # 要求 子目录=类别
目录组织与标注格式以源站说明和下载后实际文件为准。
数据缺失?
依托陕西、四川两大基地,我们与超过十家三甲医院建立直接合作关系,覆盖合规授权、采集治理、专业标注、数据交付的全流程,为AI医疗团队提供即拿即用的高质量临床数据。
⚡️ 需要数据支持或标注服务?立即联系我们获取专业方案。




