威斯康星州乳腺癌诊断数据集

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

github
2024-11-20 更新
浏览 17
医学诊断机器学习
Breast Cancer Wisconsin Diagnosis Dataset

基本信息

大小
0.000777 GB
许可
MIT
创建/更新时间
2024-11-20
版本
main

资源简介

威斯康星州乳腺癌诊断数据集

【数据集背景】

本数据集源站标题为《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:

  1. Dropping unnecessary features: Features like id were dropped as they do not contribute to prediction.
  2. Encoding target variable: The target variable diagnosis was encoded as 0 (benign) and 1 (malignant).
  3. 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, and area_mean.
    • High positive correlation of concave points_mean with the target variable.
    • Features with high multicollinearity were shortlisted for potential dimensionality reduction.

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:

  1. Logistic Regression
  2. k-Nearest Neighbors (k-NN)
  3. **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)  # 要求 子目录=类别

目录组织与标注格式以源站说明和下载后实际文件为准。

完整仓库:github.com/CenturionEaz/Breast-Cancer-Detection-ML

数据缺失?

依托陕西、四川两大基地,我们与超过十家三甲医院建立直接合作关系,覆盖合规授权、采集治理、专业标注、数据交付的全流程,为AI医疗团队提供即拿即用的高质量临床数据。

⚡️ 需要数据支持或标注服务?立即联系我们获取专业方案。

获取专属数据定制方案