Skip to main content

Auto Forecast

AutoML library for time series forecasting

Quick start

Upgrade pip

$ pip install pip --upgrade

Install autoforecast

$ pip install autoforecast

Try it out with your own dataset

  1. Preprocessing
from Autoforecast.preprocessing import preprocessing

X_train, y_train, X_test, y_test = preprocessing(
    df=df,
    target_name=['sales'],
    categoricals=['store_id', 'dpt_id', 'holiday', 'zipcode', ...],
    numericals=['employee_num', 'store_surface', ...],
    date_col=['date'],
    train_size=0.8,
    engineering=True,
    selection=True
)
  1. Fitting and predicting
from autoforecast.automl import AutoForecast


model = AutoForecast()

print('Autoforecast() model fitting...')
model.fit(X_train=X_train, y_train=y_train)

print('Autoforecast() model predicting...')

y_pred = model.predict(X_test=X_test)
print(f'y_pred={y_pred})

Run the example function

from autoforecast.examples import autoforecast_bitcoin


autoforecast_bitcoin.run()

Fetch historical cryptocurrency data

This function is a wrapper of https://developers.coinbase.com/api/v2#prices

  • n: integer, number of days we want since today
  • type: str, ['buy', 'sell', 'spot']
  • currency_pair: str, crypto & currency
from autoforecast.datasets.import_bitcoin_price import get_price_for_last_n_days


crypto_df = get_price_for_last_n_days(
    n=1, type='spot', currency_pair='BTC-USD')
)

Metadata

Release files for autoforecast 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoforecast 0.0.9
File Size Uploaded Provenance Actions
autoforecast-0.0.9.tar.gz 15.3 kB Without provenance Details for autoforecast-0.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autoforecast 0.0.9
File Interpreter ABI Platform Actions
autoforecast-0.0.9-py3-none-any.whl Python 3 none any Details for autoforecast-0.0.9-py3-none-any.whl

Total release size: 40.9 kB

Release files / autoforecast-0.0.9.tar.gz

Download URL autoforecast-0.0.9.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fa51de563c61db1490891cb84364c5ddf5f44309478e01388d93625888089d09
BLAKE2b-256 checksum
How to use checksums
56d9a1b1a272f74b27dc22438a3cc5503dd428924a0dc00298a802589e896989
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / autoforecast-0.0.9-py3-none-any.whl

Download URL autoforecast-0.0.9-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bb9c5a52ab4c22e57590c6267e171195fba225c7f6497dae6461996198594af
BLAKE2b-256 checksum
How to use checksums
781597cd75a536a22ad34cae27a1fe276012f3aa9652a9fbeac5705deaf4852a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Security for autoforecast 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page