Coder Social home page Coder Social logo

demand_forecasting_simulation's Introduction

demand_forecasting_simulation

This is a package to create simulated data that can be used for developement of statistical models for Demand Forecasting, i.e., time series predictions for different products in different locations, for example of a grocery chain.

Usage

Just run simulations.py, which includes the main function.

Created Data Sets

There are three different data sets:

train.csv: Meant to be used for the training of the statistical models.

test.csv: Can be considered as future data and is meant to be predicted out-of-sample (i.e., aim is to achieve generalization in the training).

test_results.csv: Contains the actual values to be predicted from test.csv. Only meant for model evaluation and must not be used in the training or prediction processes.

Description of Variables

P_ID Identifier of the different products/articles.

L_ID Identifier of the different locations/stores.

DATE Date of the data of the given record. Together with P_ID and L_ID, uniquely identifies each record.

SALES Aggregated daily sales of the given product in the given location at the given date.

PG_ID_1 Identifier of the highest level of the product group hierarchy, e.g., food or beverages.

PG_ID_2 Identifier of the second highest level of the product group hierarchy, e.g., sweets or vegetables.

PG_ID_3 Identifier of the lowest level of the product group hierarchy, e.g., apples or bananas.

NORMAL_PRICE Usual, unreduced price of the product-location-date combination at hand. Not necessarily the actual sales price (in case of a price reduction).

SALES_PRICE Actual, potentially reduced, price of the product-location-date combination at hand.

PROMOTION_TYPE Values indicating no promotion (0) or two different typess of promotions (1 and 2) for the product-location-date combination at hand.

SALES_AREA Size of the given store in square meters.

EVENT Name of a holiday occuring on the given date in the region of the given location.

SCHOOL_HOLIDAY Boolean flag indicating if the given date is a school holiday in the region of the given location.

demand_forecasting_simulation's People

Contributors

felixwick 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.