Skip to main content

Easy-to-use box ML solution for forcasting consumption

Project description

Icon

What is this Library about?

Easy-to-use (4 lines of code, actually) framework for training powerful predictive models!

Description

We made a mother-model, which consists of multiple layers of predictive models: ewma is used as trend, Prophet is used for getting seasonality, CatBoost is used for predicting residuals. Why did we do that? Because we needed a out-of-the-box solution, which could be used by non-ML users.

How-to-install?

You can install this framework via pypi:

pip install TeremokTSLib

How-to-use?

You can watch an example in TeremokTSLib/tests foulder. All you need is dataframe with 2 columns: date, consumption. Then you can initiate mother-model and train it with just 2 rows of code:

import TeremokTSLib as tts
model = tts.Model()
model.train(data=data)

Maintained by

Library is developed and being maintained by Teremok ML team

Contacts

Change Log

0.1.0 (27.07.2024)

  • First release

1.1.0 (28.07.2024)

  • Beta verison release
  • Visualisation of itertest added

1.1.1 (06.08.2024)

  • Fixed some bugs

1.1.2 (09.08.2024)

  • Added parallel training for Prophet

1.1.3 (16.08.2024)

  • Now predict_order method returns dict with predicted orders and cons
  • Added visualisation of optuna trials

1.1.4 (17.08.2024)

  • Optimized Prophet inference. 54% reduction of inference time.

1.1.5 (21.08.2024)

  • Fixed bug with Optuna beta optimisation.

1.1.6 (21.08.2024)

  • Fixed bug with ewma shift.

1.1.7 - YANKED - (22.08.2024)

  • Added regularisation for orders in time of surges in consumption.

1.1.8 (23.08.2024)

  • Uploaded fixed seasonality;
  • Added WAPE metric calculation in itertest.

1.1.9 (24.08.2024)

  • finally fixed beta optimization;
  • added regularization parameter to optuna;
  • added safe stock coef to optuna;

1.2.0 (24.08.2024)

  • added support for lower-than-predicted orders.

1.2.1 (26.08.2024)

  • fixed itertest;
  • added NeuralProphet option.

1.2.2 (28.08.2024)

  • deleted NeuralProphet option;
  • added MinMaxModel for modelling long-living items.

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

TeremokTSLib-1.2.2.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

TeremokTSLib-1.2.2-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file TeremokTSLib-1.2.2.tar.gz.

File metadata

  • Download URL: TeremokTSLib-1.2.2.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for TeremokTSLib-1.2.2.tar.gz
Algorithm Hash digest
SHA256 c4d0b0472966cdecc3512e2bb46b1cdd6f07a2ea7eb1700abfd49444935d55bd
MD5 8fc2ea40d791a8b2f565fcfbc85318ad
BLAKE2b-256 4baa3565ffde4259867c5a122b299e071489b76e04d42c9275a42c02a1be261c

See more details on using hashes here.

File details

Details for the file TeremokTSLib-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: TeremokTSLib-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for TeremokTSLib-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a8009b75555a4d85dcb77e26fd4b2e2a1070a15e86d558899a3a3a6bb2110cc
MD5 87e1dbe47f703a34dafa8edee8b54a45
BLAKE2b-256 9438d4e2c5737d51bcbe41c8630a826fddebb2fac8fcb53a776af1c791d20b8e

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