Giter Club home page Giter Club logo

xiaoheilong3112 / experiment-with-the-cleveland-heart-dataset Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 29 KB

使用克利夫兰心脏病数据集包含 的303个实例和14个属性,请直接使用克利夫兰心脏病数据集的目标变量基于随机森林模型进行二分类预测,预测患者是否会患上心脏病。基于6个方法(混淆矩阵,精度,召回率、精确率和 F1 分数,ROC 曲线和 AUC 分数,特征重要性,部分依赖图)对前面随机森林模型的预测结果进行评估和解释。

Python 92.02% Dockerfile 7.98%

experiment-with-the-cleveland-heart-dataset's Introduction

Experiment-with-the-Cleveland-Heart-Dataset

使用克利夫兰心脏病数据集包含 的303个实例和14个属性,请直接使用克利夫兰心脏病数据集的目标变量基于随机森林模型进行二分类预测,预测患者是否会患上心脏病。基于6个方法(混淆矩阵,精度,召回率、精确率和 F1 分数,ROC 曲线和 AUC 分数,特征重要性,部分依赖图)对前面随机森林模型的预测结果进行评估和解释。

这个Python脚本文件名为"medical_data.py",主要用于处理和可视化医疗数据。它首先导入了一些必要的库,包括numpy、pandas、matplotlib、scikit-learn、t-SNE、UMAP和LLE。

在脚本中,首先读取了一个CSV文件中的医疗数据,并将其分为特征X和标签y。然后,它使用了三种不同的降维技术(t-SNE、UMAP和LLE)来将高维的医疗数据降维到二维,以便于可视化。

对于每种降维技术,都首先创建了一个降维模型,然后使用该模型将特征X降维,并将结果保存在一个新的变量中。然后,使用matplotlib库创建了一个散点图来可视化降维后的数据,其中点的颜色表示数据的标签。

experiment-with-the-cleveland-heart-dataset's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wangshem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.