Skip to content

ZoeHancox/ML_pytesting_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

ML_pytesting_tutorial

This repository contains Python files showing how Pytesting can be undertaken to improve code functionality.

The code within this repository was made for an Applications and Implications of Artificial Intelligence (AI^2) Forum.

How to run this code?

The best way to get this code running quickly is to download the zip of the files in this repository and then upload the Pytesting folder to your Google Drive account to work within Google Colab. By working in Google Colab we remove the need for setting up an environment with the necessary packages. The notebook you can work from that integrates with the other files is the testing_workbook.ipynb.

If you can't run the code or would like to see the answers you can look at the pytesting_answers.ipynb notebook.

Want to collaborate with others?

Check out this hackpad for help, inspiration and sharing!

Dataset

The Stroke Prediction Dataset from Fedesoriano on Kaggle is used for the Machine Learning sections of this tutorial.

This dataset can be used to predict whether a patient is likely to get stroke based on parameters like gender, age, various diseases, and smoking status. Each row in the data provides relavant information about the patient. The attributes used in this data are provided below:

  1. id: unique identifier

  2. gender: "Male", "Female" or "Other"

  3. age: age of the patient

  4. hypertension: 0 if the patient doesn't have hypertension, 1 if the patient has hypertension

  5. heart_disease: 0 if the patient doesn't have any heart diseases, 1 if the patient has a heart disease

  6. ever_married: "No" or "Yes"

  7. work_type: "children", "Govt_jov", "Never_worked", "Private" or "Self-employed"

  8. Residence_type: "Rural" or "Urban"

  9. avg_glucose_level: average glucose level in blood

  10. bmi: body mass index

  11. smoking_status: "formerly smoked", "never smoked", "smokes" or "Unknown"

  12. stroke: 1 if the patient had a stroke or 0 if not

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published