Skip to content

YashasviBhatt/CoViD-19_Probability_Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoViD-19 Probability Detector

This Project use Logistic Regression to calculate Probability of a person having CoViD-19 so as to prioritize the testing such that those who have high probability of getting infected could be tested before those who have relatively less probability of getting infected. User will be asked for conditions like Travel Status, Fever Level, Body Pain, Runny Nose etc and according to that data the model will predict the probability of having infected.

To run this Project please follow these steps

  1. Open command prompt or powershell window.

  2. Type this command
    git clone https://github.com/YashasviBhatt/CoViD-19_Probability_Detector
    and press enter.

  3. Go inside the Cloned Repository folder and open command-prompt or powershell window.

  4. Type
    pip install -r requirements.txt
    and press enter in either command_prompt or powershell window as administrator.

  5. After Installing all the required libraries create the server using
    python srvr.py.
    Open the IP Address in a browser and use this Project.

  6. srvr.py uses the saved model which was pre-trained and kept saved, if you want to retrain the model then execute
    python covid_prob.py
    now repeat step 5.

Working

  1. Firstly, data is imported using pandas library.
  2. Secondly, we divide the features and label into seperate dataframes.
  3. Now, after creating the separate dataframes for features and label, we split them into training and testing sets.
  4. The training set is used to train the model using Logistic Regression (since, we are talking about probability and Tabular Datasets, thus Logistic Regression best fits the approach).
  5. The trained model is saved into a file using pickle module in python.
  6. srvr.py file is used to create a localhost server using flask module in python which will reflect the HTML pages.
  7. The data after submitting the form from HTML pages is passed to trained model which will later calculate Probability.


    This Model is completely trained on random data, thus accuracy should not be taken in concern, however if real stats is used for training, this Model can perform much-much better.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages