Concha finds the optimal amount of perishable goods to produce.
Project description
Concha
A machine learning system for how deciding many things to make each day.
Cafes, grocery stores, restaurants, donut shops, and panaderias face a fundamental question every morning: How many should I make?"
Concha uses data tracked by the point of sale service, combined with local weather conditions to learn demand patterns. Then it predicts how much to make of each product to maximize profit.
Concha can interface with Square to get the sales history. It takes about 10 minutes to set up.
Try it out
You can run concha entirely on Google Colab (a free deep learning platform). Run a concha simulation in a Colab notebook A Colab "notebook" is a bunch of code blocks you can run one by one by clicking the play button in the upper left corner (or by typing CTRL-ENTER).
If you want to do more than run simulations and use it to predict how much to make/order for each day, you can run it from your Google Drive. Concha will save a file of predictions to your drive that you can open up with Google Sheets.
This Medium article is a complete guide to setting up Concha and running it on Colab.
Making Predictions from Your Data
The first step is to save the Google Colab notebooks (a kind of Google Drive file that can run Python code) on your own drive. Then you can set up access to 1.) The NOAA weather data, and 2.) Your Square data (your sales history.) The setup_do_once notebook shows exactly how it works and automates the process.
Once you have setup access to your data and the weather, the model can learn from your sales history and predict the optimal quantity to produce by running code in the make predictions notebook. The predictions go out six days (the limit of the weather predictions).
Local Installation
pip install concha
Package Layout
The source code is in /src/concha.
- importers.py defines the Square SDK agent.
- planner.py defines the planner.
- model.py defines the different estimators.
- product.py defines product objects and methods.
- weather.py defines the NOAA agent.
The code is documented thoroughly, and you can see many other many other settings that can be expirmented with to optimize production planning.
Usage Guides
These notebooks walk through how to use concha.
Note
This project has been set up using PyScaffold 3.2.3 and the dsproject extension 0.4. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file concha-0.3.5.tar.gz
.
File metadata
- Download URL: concha-0.3.5.tar.gz
- Upload date:
- Size: 80.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3b000c15eecdda360b49f385e46078fcd6de6fdf9f7dbc7d38b81f99c82104 |
|
MD5 | 72b5dbfda6791810fa3c0f66dab448e5 |
|
BLAKE2b-256 | e438538e35cf082d81f52a98208286fe33bea38ddc24da8ba97fbbf7672b22a1 |
File details
Details for the file concha-0.3.5-py2.py3-none-any.whl
.
File metadata
- Download URL: concha-0.3.5-py2.py3-none-any.whl
- Upload date:
- Size: 38.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6bb46fcccac008ef07bcb04c0ee888582bd24b64fcdd2ab304dea5167fa1064 |
|
MD5 | 8dff1c09e0f203a2cf0c0e52c2591759 |
|
BLAKE2b-256 | e601bfcb1db750288ac90192f2bc23bb12c9f77861bd358159ba8ff6c4bcc0cb |