Pima Indians糖尿病数据集

皮马印第安人糖尿病预测数据集,包含多个医学指标和结果标签,用于二分类任务。

mosiamaratemosiamarate
GitHub
2024-08-02 更新
浏览 17
表格糖尿病表格

基本信息

模态
表格
创建/更新时间
2024-08-02

资源简介

该数据集用于预测糖尿病,包含多个医学预测变量(怀孕次数、血糖浓度、舒张压、三头肌皮褶厚度、2小时血清胰岛素、体重指数、糖尿病谱系功能和年龄)和一个目标变量(结果,0或1),属于表格数据,任务为二分类。

原始链接

https://github.com/mosiamarate/HealthDataScraping

访问原始数据

官方服务

如需原始数据获取支持或标注服务,请联系我们。

帮我联系

下载信息

注册下载

Tips: 该数据集需要在对应的数据源网站注册通过后,才能进行数据下载,注册有对应要求,或者需要收费。

暂未开放

公开下载

Tips: 该数据集属于公开下载,应该可以免费公开下载。

免登录

有偿下载

Tips: 该数据集 Qianfanghub 可以协助提供有偿下载服务,注意,服务不针对数据相关产权,只是技术服务费。

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

暂未开放

千方医数集,医疗数据集部分,是为社区服务的公开医疗数据集搜索引擎,并不存储或者下载原始的任何数据。 如果您有其他医疗数据需求,可以和客服联系,或者下工单。我们有强大的三甲医疗机构帮助您提供个性化的医疗数据定制、采集、标注服务。

使用方式

数据集获取

git clone https://github.com/mosiamarate/HealthDataScraping.git

curl -L -o repo.zip https://github.com/mosiamarate/HealthDataScraping/archive/refs/heads/main.zip
unzip repo.zip

源站 README 摘录(使用方式)

How to Use the Script

Prerequisites

Ensure you have Python installed along with the following libraries:

  • numpy
  • pandas
  • matplotlib
  • seaborn
  • scikit-learn
  • joblib

You can install these using pip:

pip install numpy pandas matplotlib seaborn scikit-learn joblib

Running the Script
Clone the repository or download the script:

sh
git clone <repository-url>
cd <repository-directory>

Run the script:
sh
python HealthDatabase.py

Script Explanation
Importing Libraries: Import necessary libraries for data manipulation, visualization, and machine learning.
Loading Data: Load the dataset from the provided URL and assign column names.
Data Preprocessing: Replace 0s with NaNs for specific columns and fill NaNs with statistical measures (mean or median).
EDA: Plot histograms for each feature and a correlation heatmap to understand data distribution and relationships.
Feature Engineering: Split the data into features (X) and target (y), then standardize the features.
Model Building: Train a Random Forest Classifier on the training data.
Model Evaluation: Predict on test data and evaluate the model using accuracy, confusion matrix, and classification report.
Model Interpretation: Plot feature importance to understand which features contribute most to the model’‘s predictions.
Model Saving and Loading: Save the trained model to a file and load it when needed.
Making Predictions: Use the loaded model to make predictions on new patient data and print the result.
Making Predictions
To make predictions on new data, modify the new_patient_data dictionary with the new patient’‘s details and run the script. The script will output whether the patient has diabetes or not based on the model’'s prediction.

Ethical Considerations
Data Privacy: Ensure patient data privacy and obtain necessary consent.
Model Interpretability: Use interpretable models to understand and trust predictions.
Model Maintenance: Regularly retrain the model with new data to keep it up-to-date.
Deployment
For practical use, consider deploying the model in a user-friendly interface, such as a web app, for healthcare professionals.

Conclusion
This project demonstrates a complete machine learning workflow for predicting diabetes using the Pima Indians Diabetes dataset. By following the steps outlined, you can build, evaluate,

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

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/mosiamarate/HealthDataScraping

精度瓶颈?数据缺失?

当前公开数据无法满足您的算法精度?千方提供针对 糖尿病 的高质量、多模态真实临床数据定制解决方案。

获取专属数据定制方案