心脏病数据集-18171

包含1025条记录的心脏病检测表格数据集,涵盖年龄、性别、血压等临床变量。

micky225micky225
GitHub
2024-07-22 更新
浏览 14
表格心脏病表格
Heart Disease Dataset

基本信息

模态
表格
创建/更新时间
2024-07-22

资源简介

该数据集用于检测心脏病,包含年龄、性别、胸痛类型、血压等临床变量,共1025条记录,属于表格数据,可用于分类或预测任务。

官方服务

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

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

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

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

帮我联系

下载信息

注册下载

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

暂未开放

公开下载

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

免登录

有偿下载

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

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

暂未开放

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

使用方式

数据集获取

git clone https://github.com/micky225/Heart-Disease-Detector.git

curl -L -o repo.zip https://github.com/micky225/Heart-Disease-Detector/archive/refs/heads/master.zip
unzip repo.zip

源站 README 摘录(使用方式)

AI and Data Documentation

Prediction Model Documentation

Overview

This Python script contains code for developing a machine learning model to detect heart disease based on a given dataset. The model leverages various Python libraries for data preprocessing, feature engineering, model training, and evaluation.

Purpose

The purpose of this model is to predict the presence or absence of heart disease in individuals based on a set of features. Early detection of heart disease can significantly improve patient outcomes by enabling timely interventions and treatments.

Packages Used

The following packages are imported and used within the script:a

  1. warnings: Python module for controlling warning messages.
  2. numpy (np): Fundamental package for scientific computing with Python.
  3. pandas (pd): Data manipulation and analysis library.
  4. matplotlib.pyplot (plt): Plotting library for creating static, animated, and interactive visualizations.
  5. seaborn (sns): Data visualization library based on matplotlib, providing a high-level interface for drawing attractive statistical graphics.
  6. matplotlib.colors.ListedColormap: Module for creating a colormap from a list of colors.
  7. sklearn.model_selection.train_test_split: Function for splitting arrays or matrices into random train and test subsets.
  8. scipy.stats.boxcox: Function for computing the Box-Cox power transformation.
  9. sklearn.pipeline.make_pipeline: Function for constructing a pipeline from the given estimators.
  10. sklearn.preprocessing.StandardScaler: Class for standardization, scaling features by removing the mean and scaling to unit variance.
  11. sklearn.neighbors.KNeighborsClassifier: K-Nearest Neighbors classifier implementation.
  12. sklearn.svm.SVC: Support Vector Classification implementation.
  13. sklearn.model_selection.GridSearchCV: Grid search with cross-validation for optimizing hyperparameters of a classifier.
  14. sklearn.model_selection.StratifiedKFold: Stratified K-Folds cross-validator.
  15. sklearn.metrics.classification_report: Function for building a text report showing the main classification metrics.
  16. sklearn.metrics.accuracy_score: Function for computing the accuracy classification score.
  17. sklearn.tree.DecisionTreeClassifier: Decision Tree classifier implementation.
  18. sklearn.ensemble.RandomForestClassifier: Random Forest classifier implementation.
  19. sklearn.linear_mo

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

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/micky225/Heart-Disease-Detector

数据缺失?

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

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

获取专属数据定制方案