An open API service indexing awesome lists of open source software.

https://github.com/anas436/patient-class-and-drug-prediction-using-decision-tree-with-python


https://github.com/anas436/patient-class-and-drug-prediction-using-decision-tree-with-python

decision-tree-classifier matplotlib numpy pandas python3 scikit-learn sklearn sklearn-metrics train-test-split

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Patient-Class-and-Drug-Prediction-Using-Decision-Tree-with-Python

## Objectives

After completing this lab you will be able to:

* Develop a classification model using Decision Tree Algorithm

In this lab exercise, you will learn a popular machine learning algorithm, Decision Trees. You will use this classification algorithm to build a model from the historical data of patients, and their response to different medications. Then you will use the trained decision tree to predict the class of an unknown patient, or to find a proper drug for a new patient.

Table of contents






About the dataset


Imagine that you are a medical researcher compiling data for a study. You have collected data about a set of patients, all of whom suffered from the same illness. During their course of treatment, each patient responded to one of 5 medications, Drug A, Drug B, Drug c, Drug x and y.




Part of your job is to build a model to find out which drug might be appropriate for a future patient with the same illness. The features of this dataset are Age, Sex, Blood Pressure, and the Cholesterol of the patients, and the target is the drug that each patient responded to.




It is a sample of multiclass classifier, and you can use the training part of the dataset
to build a decision tree, and then use it to predict the class of an unknown patient, or to prescribe a drug to a new patient.