Skip to main content

Forecast sales with Entity Embedding LSTM

Project description

AM18_SPR20_LondonLAB

Package Description

The package contains one object Kami with four methods in the order of execution:

  1. Preprocess()
  2. Analyse(n_sample)
  3. Vis()
  4. Forecast(store_list, product_list, start, end)

To initiate the object Kami, the user is required to supply at least these three arguments:

  1. Path to the grouped product sales input data (input_f_path)
  2. Path to an intermediary folder to store intermediary data (cache_dir_path)
  3. Path to an output folder to store final predictions (output_dir_path)

While Preprocess and Vis methods are executed without any argument, Analyse method can be supplied with an optional argument n_sample which is the number of random samples drawn from the predefined training data.

Forecast method is required to be supplied with four arguments including:

  1. A list of stores whose sales are predicted (store_list)
  2. A list of products whose sales are predicted (product_list)
  3. The start date of the forecast (start)
  4. The end date of the forecast (end)

Typical Use Case


from Kami import Kami

obj = Kami(input_f_path = 'PATH_TO_SALES_DATA/SALES_DATA.csv',
		output_dir_path = 'OUTPUT_FOLDER/',
		cache_dir_path = 'CACHE_FOLDER/')
obj.Preprocess()
obj.Analyse()
obj.Vis()
obj.Forecast(store_list = ['STORE_A', 'STORE_B'],
		product_list = ['PRODUCT_A', 'PRODUCT_B'],
		start = 'MM/DD/YYYY',
		end = 'MM/DD/YYYY')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Kami-0.4.3.tar.gz (9.9 kB view details)

Uploaded Source

File details

Details for the file Kami-0.4.3.tar.gz.

File metadata

  • Download URL: Kami-0.4.3.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for Kami-0.4.3.tar.gz
Algorithm Hash digest
SHA256 6377ccb82767ecd155244eadb8f5fbb49c2361199157435eeb6c5f4e0c015b0e
MD5 d254ddc5dc4da0111589d657896101e3
BLAKE2b-256 9d3bbe3a4187ada38578703bd07e6f2cd69f42598a4885a89d44d56f6d902804

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page