Skip to content

Rekidiang2/ml02_drug_store_sales_prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diabetes Prediction

photo cover

A pharmaceutical store owner need to understand the data of his business to answer following question :

  1. On which day of the week is a particular drug most often sold?
  2. Which five drugs have the highest sales in January 2015, July 2016, September 2017.
  3. Which drug has sold most often on Mondays in 2017?
  4. What medicine sales may be in January 2020? (Our data set only contains information about sales from January 2014 to October 2019)

Contents

  1. Project Structure
  2. Prosess
  3. How to run
  4. Deployment (Real world Use)
  5. To improve
  6. About Me

1. Project Structure

Data

  • ├── diabetes.csv
  • ├── cleaned_data.csv
  • ├── scaled_data.csv
  • ├── data_documentation.pdf

analysis_and_training

  • ├── py_files
  • ├── 1_data_preprocessing
  • ├── 2_ML_model
  • ├── 3_DL_model
  • ├── helpers.py

figures

  • ├── contains graph and figures

models

  • ├── contains trained models

images

  • ├── contains images used in this images
environment
requirements.txt
gitignore
report (pdf & ppt)

2. Process

  • step1 : Importing Packages
  • step2 : Loading the data
  • step3 : Exploratory Data Analysis (EDA)
  • step4 : Data Preparation
  • step5 : Build and Train the model
  • step6 : Model prediction and Evaluation
  • step7 : Model Improvement
  • Hyperparameter Tuning, Features Selection and Features Ingeneering
  • step8 : Model Deployment

3. How to run

N.B : python 3.7 is recommended

3.1. CLONE PROJECT DIRECTORY

  • $ git clonehttps://github.com/RekidiangData-S/p01ml_diabetes_prediction.git
  • $ cd p01ml_diabetes_prediction

3.2. CREATE & ACTIVATE VIRTUAL ENVIRONMENT

3.2.1. WITH PIP and VENV

(Windows)
  • $ python -m venv p01ml_venv
  • $ p01ml_venv\Scripts\activate (<= Activate virtual Environment)
  • $ deactivate (<= Deactivate virtual Environment)
  • $ pip install -r requirements.txt
  • Set VIRTUAL ENVIRONMENT as KERNEL :
    • $ python -m ipykernel install --user --name ml02_venv --display-name "ml02_kernel"
  • $ jupyter notebook
(MasOS || LINUX)
  • $ python3 -m venv ml02_venv
  • $ source ml02_venv/bin/activate (<= Activate virtual Environment)
  • $ deactivate (<= Deactivate virtual Environment)
  • $ pip install -r requirements.txt
  • Set VIRTUAL ENVIRONMENT as KERNEL :
    • $ python -m ipykernel install --user --name ml02_venv --display-name "ml02_kernel"
  • $ jupyter notebook

3.2.2. WITH CONDA

  • Verify if you have conda installed ($conda --version) if not go to anconda or miniconda to download and install it

  • $ conda create -n ml02_venv python=3.7

  • $ conda activate ml02_venv (<= Activate virtual Environment)

  • $ conda deactivate (<= Deactivate virtual Environment)

  • Set VIRTUAL ENVIRONMENT as KERNEL :

    • $ python -m ipykernel install --user --name ml02_venv --display-name "ml02_kernel"
  • $ jupyter notebook

  • Go to Kernel -> Change kernel -> ml02_kernel

  • $ jupyter kernelspec list (<= list all ipykernel in your system)

  • $ jupyter kernelspec uninstall p01ml_venv (<= Delete the ipykernel in your system)

Manage kernel

  • $ jupyter kernelspec list (<= list all ipykernel in your system)
  • $ jupyter kernelspec uninstall ml02_venv (<= Delete the ipykernel in your system)

4. Deployment (Real world Use)

5. To improve

  • put link for real world app after deployment in heroku

6. About Me


I'm a data scientist, software Engineer. data and technology passionate person, Artificial Intelligence enthusiast

My Website Click Here

Social Network

alt text alt text alt text alt text

About

Analyse sale data for drug store

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published