Skip to content

PeanutPK/Diabetes-Analysis

Repository files navigation

Diabetes-Checker

A visualization program designed to help users check their risk levels for diabetes. This tool can provide valuable insights into potential health risks and assist users in making informed decisions about their well-being.

Resource

This project uses dataset from kaggle.com

Information table image sources BMI, Blood pressure, Age, and Glucose

Files

file Description
application.py The class for controlling both UI and Model.
diabetes_model.py The model class that load and compute data.
diabetes_view.py The GUI class for user interface.
main.py Main script to run the program.
data Folder that contain both pictures and data for model to compute and UI to display.

Example UI

Windows and macOS have only slightly different when it comes to menubar.

Tab(macOS) Example
Storytelling(Home) macOS home
Histogram and statistic tab histogram statistic
Freestyle tab histogram scatter
Tab(Other type) Example
Home(Windows) Windows home
Home(Light Mode) Windows home

Diagrams

UML Class Diagram

UML Class Diagram

UML Sequence Diagram

Storytelling tab after clicks a correlation button and closes both windows

UML Sequence Diagram

Installation and How to run

Installation

  1. Open Terminal (macOS/Linux) or Powershell/Command Prompt (Windows).

  2. Clone files from GitHub repository.

git clone https://github.com/PeanutPK/Diabetes-Analysis.git
  1. After cloning changes your directory to the existing folder.
cd Diabetes-Analysis
  1. Install all requirements in requirements.txt.
pip install -r requirements.txt
  1. Run main.py file
python main.py

Creating Virtual Environment

  1. Open Terminal (macOS/Linux) or Powershell/Command Prompt (Windows).
  2. Change directory to the project
cd Diabetes-Analysis
  1. Create a Virtual Environment.
  • for macOS/Linux
python -m venv env
  • or for Windows
python3 -m venv env

Activate Virtual Environment

  1. Open Terminal (macOS/Linux) or Powershell/Command Prompt (Windows).
  2. Change directory to the project
cd Diabetes-Analysis
  1. Activating venv
  • for macOS/Linux
source env/bin/activate
  • or for Windows
env\Scripts\activate

Deactivating venv

deactivate

About

Project for programming 2 class

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages