Skip to main content

Forecasting tools

Project description

# anticipy

AnticiPy is a tool to generate forecasts for time series. It takes a pandas Series or DataFrame as input, and
returns a DataFrame with the forecasted values for a given period of time.

Features:

* **Simple interface**. Start forecasting with a single function call on a pandas DataFrame.
* **Model selection**. If you provide different multiple models (e.g. linear, sigmoidal, exponential), the tool will
compare them and choose the best fit for your data.
* **Trend and seasonality**. Support for weekly and monthly seasonality, among other types.
* **Calendar events**. Provide lists of special dates, such as holiday seasons or bank holidays, to improve model
performance.
* **Data cleaning**. The library has tools to identify and remove outliers, and to detect and handle step changes in
the data.

It is straightforward to generate a simple linear model with the tool - just call forecast.run_forecast(my_dataframe):

```python
import pandas as pd, numpy as np
from anticipy import forecast, forecast_models
df = pd.DataFrame({'y': np.arange(0., 5)}, index=pd.date_range('2018-01-01', periods=5, freq='D'))
df_forecast = forecast.run_forecast(df, extrapolate_years=1)
print df_forecast.head(12)
```

Output:

```
. date model y is_actuals
0 2018-01-01 y 0.000000e+00 True
1 2018-01-02 y 1.000000e+00 True
2 2018-01-03 y 2.000000e+00 True
3 2018-01-04 y 3.000000e+00 True
4 2018-01-05 y 4.000000e+00 True
5 2018-01-01 linear 5.551115e-17 False
6 2018-01-02 linear 1.000000e+00 False
7 2018-01-03 linear 2.000000e+00 False
8 2018-01-04 linear 3.000000e+00 False
9 2018-01-05 linear 4.000000e+00 False
10 2018-01-06 linear 5.000000e+00 False
11 2018-01-07 linear 6.000000e+00 False
```



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

anticipy-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anticipy-0.0.1-py2-none-any.whl (3.8 kB view details)

Uploaded Python 2

File details

Details for the file anticipy-0.0.1.tar.gz.

File metadata

  • Download URL: anticipy-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.11

File hashes

Hashes for anticipy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 389e73823fdc1bf84a62125cd97c67c78a70511aab7ceb97002ce0289c09b5f4
MD5 ff7d0cd0f497ce0128e0c353e8221052
BLAKE2b-256 139d59b1e94b6a6d4d51d79f674c704c2bf2b21060afcc0572107abacd8b5c3a

See more details on using hashes here.

File details

Details for the file anticipy-0.0.1-py2-none-any.whl.

File metadata

  • Download URL: anticipy-0.0.1-py2-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.11

File hashes

Hashes for anticipy-0.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 6187fa36a98e9634e92330468ff6bdd0bc4e0f70d6275b9f3271a02305f3ab24
MD5 b505ac3b137ac4e317dbc9f9d71ca2a5
BLAKE2b-256 0d40e5bc5e026e8957896451e72e71bc5bd31cde5c767722651e0bfba02e5f50

See more details on using hashes here.

Supported by

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