Coder Social home page Coder Social logo

perdanaph / pharmaceutical-sales-prediction Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 35.94 MB

Home Page: https://deploy-model-pharmaceutical-sales-prediction.streamlit.app/

Python 1.10% Jupyter Notebook 98.90%
machine-learning prediction-model

pharmaceutical-sales-prediction's Introduction

Retail Sales prediction across multiple stores

Project Type - EDA/Regression/Classification/Unsupervised

  • This dataset is a live dataset of Rossmann Stores. On analsysing this problem we observe that Rossmann problem is a regression problem and our primarily goal is to predict the sales figures of Rossmann problem. In this Notebook we work on following topics

Analysing the Dataset by using Exploratory Data Analysis. Using Exponential Moving Averages analyse Trends and Seasonality in Roseman dataset. Analyse Regression analysis using following prediction analysis, A. Linear Regression Analysis B. Elastic Regression ( Lasso and Ridge Regression). C. Random Forest Regression. d.adaboost and Xgboost.

By applying above algorthim we find accuracy of 98% by Xgboost

Part 02. Procces Retail Sales Prediction Multiple Store

  • Data Preprocessing,
  • Building models with sklearn pipelines,
  • Choosing a loss function,
  • Post Prediction analysis,
  • Serialize models,
  • Building model with deep learning, and
  • Using MLFlow to serve the prediction

This part is done in directory /notebooks 'Retail Sales Predication-ML project .ipynb'

Part 03. Tutorial setup to run this project

CLONE REPOSITORY

$ git clone <remote_repo> (ex: git clone https://github.com/perdanaph/Pharmaceutical-Sales-Prediction)
# clone github repository 

HOW TO SETTING VENV PYTHON

$ python -m venv <yourenvname> (ex: myenv)
$ ./<yourenvname>/Scripts/activate (ex: ./myenv/Scripts/activate)
# setting venv in your local computer

HOW TO INSTALL DEPENDENCIES

  • before this step, make sure your venv activated
  • for example
(env) C:\User\<Name>\directory\..\streamlit-project>

Install dependencies in file requirements.txt

$ pip install -r requirements.txt
# install all dependencies

Run MLflow

  • this step will building a model ML using xgboost algorithm
  • to run this step you can add command in the terminal
$ python scripts/app.py
# running MLflow to build model

Part 04. RUNNING THE STREAMLIT

  • to run streamlit you can add the terminal command like this
$ streamlit run app.py
# run the streamlit

pharmaceutical-sales-prediction's People

Contributors

perdanaph avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.