心脏疾病数据集-18431

用于预测心脏疾病的结构化表格数据集,包含年龄、性别、胸痛类型等特征,以及是否患有心脏疾病的二分类标签。

kevJ711kevJ711
GitHub
2023-12-18 更新
浏览 30
表格心脏疾病表格数据
heart-disease-dataset

基本信息

模态
表格
大小
0.000097 GB
创建/更新时间
2023-12-18
版本
main.py

资源简介

心脏疾病数据集

【数据集背景】

本数据集源站标题为《kevJ711/Machine-Learning-Health-Detection-》。源站首次发布:2023-11-22。

【数据内容】

源站原始描述:Dectects if someone has a Heart Disease with python using the Public Health Dataset of heart diseases. # Machine-Learning-Health-Detection- Dectects if someone has a Heart Disease with python using the Public Health Dataset of heart diseases. Research and Poster Presentation: I recently presented a poster on this machine learning model project at the MICRO NANO TECHNOLOGY EDUCATION SPECIAL INTEREST GROUP program. The presentation was well-received, and if you''re interested in learning more about…

【适用方向】

结构化表格数据可直接用于统计建模、特征工程与队列分析。

【获取与许可】

源站页面:https://github.com/kevJ711/Machine-Learning-Health-Detection-

【使用注意】

· 源站最后修改于 2025-07-14,引用时请注意版本时效。

官方服务

专家保障全链路合规授权与标注交付

陕川双基地 × 超十家三甲医院直连

从合规授权、采集治理、专业标注到数据集交付,我们提供全链路闭环服务,让高质量临床数据即拿即用。

⚡️ 需要原始数据或标注支持?联系我们获取定制方案。

帮我联系

下载信息

注册下载

需要注册 Kaggle 账号并登录后下载,适合需要跟踪下载记录和使用 API 的用户。

暂未开放

公开下载

无需注册即可直接获取公开样本或文档,适合快速预览和评估数据集质量。

免登录

有偿下载

公开数据集受托下载与技术交付服务。

提供高速下载与技术交付服务(收技术服务费,非数据销售)

暂未开放

当前数据集主要来源为 Kaggle 公开托管,完整影像包建议通过原始链接或 Kaggle API 获取。

使用方式

数据集获取

git clone https://github.com/kevJ711/Machine-Learning-Health-Detection-.git

curl -L -o repo.zip https://github.com/kevJ711/Machine-Learning-Health-Detection-/archive/refs/heads/master.zip
unzip repo.zip

源站 README 摘录(使用方式)

Machine-Learning-Health-Detection-

Dectects if someone has a Heart Disease with python using the Public Health Dataset of heart diseases.
Research and Poster Presentation:
I recently presented a poster on this machine learning model project at the MICRO NANO TECHNOLOGY EDUCATION SPECIAL INTEREST GROUP program. The presentation was well-received, and if you’'re interested in learning more about my findings, I encourage you to check out the detailed poster.
https://www.mntesig.net/mntesig-2023-virtual.html
My Machine Learning Model that predicts if a user would be diagnosed with heart disease based on the Public Health Dataset via https://www.kaggle.com/. This trained machine learning model utilized both the random forest and the naive Bayes classifier to test its accuracy in predicting if an individual would have heart disease.
Primary goal:
The primary goal is to develop a predictive model to determine the likelihood of a user being diagnosed with heart disease based on relevant health-related features.

Dataset Source:
The model is trained on a public health dataset sourced from heart.csv. This dataset comprises hundreds of instances related to individuals’’ health. This data set dates from 1988 and consists of four databases: Cleveland, Hungary, Switzerland, and Long Beach V.

The dataset includes features such as age
sex
chest pain type (4 values)
resting blood pressure
serum cholestoral in mg/dl
fasting blood sugar > 120 mg/dl
resting electrocardiographic results (values 0,1,2)
maximum heart rate achieved
exercise induced angina
oldpeak = ST depression induced by exercise relative to rest
the slope of the peak exercise ST segment
number of major vessels (0-3) colored by flourosopy
thal: 0 = normal; 1 = fixed defect; 2 = reversable defect The names and social security numbers of the patients were recently removed from the database, replaced with dummy values.

The target variable is the diagnosis of heart disease, represented as 0 or 1, where 0 indicates no heart disease and 1 indicates the presence of heart disease.

Model Selection and Training:
The Random Forest Classifier algorithm was selected for its suitability in binary classification tasks. In the updated version of this model, I used the Naive Bayes classifier to test each classifier’'s accuracy.

The dataset

数据加载示例(表格/文本类)

import pandas as pd, glob, os

files = (glob.glob(os.path.join(path, "**", "*.csv"), recursive=True)
       + glob.glob(os.path.join(path, "**", "*.tsv"), recursive=True)
       + glob.glob(os.path.join(path, "**", "*.xlsx"), recursive=True))
print("数据文件:", files)
df = pd.read_csv(files[0])
print(df.shape); print(df.columns.tolist()); print(df.head(3))

完整仓库:github.com/kevJ711/Machine-Learning-Health-Detection-

数据缺失?

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

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

获取专属数据定制方案