Skip to main content

AI-powered Time Series Forecasting Library

Project description

AIForecastTS

PyPI version Tests

This project is part of AI Forecast at aiconsultant.org. AIForecastTS is a practical Python library for time series analysis and forecasting — it includes classic utilities (moving average, seasonal decomposition, stationarity testing, ARIMA) and a higher-level ensemble forecaster (SuperForecaster) that combines Prophet, AutoARIMA, and XGBoost.

Features

  • Time series exploration utilities (moving averages, descriptive statistics)
  • Seasonal decomposition (trend / seasonal / residual)
  • Stationarity tests (ADF)
  • ARIMA forecasting utilities
  • SuperForecaster: an ensemble that trains Prophet, AutoARIMA and XGBoost with feature engineering (lags, rolling stats, RSI, MACD, Bollinger bands)

Installation

pip install aiforecastts

Quick Start

import pandas as pd
from aiforecastts import TimeSeriesAnalyzer, SuperForecaster

# Sample data
data = pd.Series([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], index=pd.date_range('2020-01-01', periods=10))

analyzer = TimeSeriesAnalyzer(data)
print(analyzer.moving_average(3))          # MA
print(analyzer.forecast_arima(steps=5))    # ARIMA
print(analyzer.is_stationary())            # ADF

# SuperForecaster (ensemble Prophet + AutoARIMA + XGBoost)
series = pd.Series(range(1, 121), index=pd.date_range('2020-01-01', periods=120))
forecaster = SuperForecaster(series)
metrics = forecaster.fit_ensemble(train_size=0.8)
print(metrics['mae'])
print(forecaster.predict(steps=7))

Important: This library does not fetch market data automatically. Please provide your own time series (CSV files, data APIs or a DataFrame) when using TimeSeriesAnalyzer or SuperForecaster.

Development

git clone https://github.com/tuanthescientist/aiforecastts
cd aiforecastts
pip install -e .[dev]
python -m unittest discover -v tests
ruff check . --fix
black .

Build & Publish

python -m build
twine upload dist/*

Contact / project

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

aiforecastts-0.1.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

aiforecastts-0.1.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file aiforecastts-0.1.2.tar.gz.

File metadata

  • Download URL: aiforecastts-0.1.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for aiforecastts-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3662167a844634d337bef61a5278fcaba3d391bf69f385c3d66ee6c10c34fce8
MD5 37f3f89428d6e69c7007ba30c1db71d7
BLAKE2b-256 8f9869c25e96076ddcca8d2021684622fed688555a3a3fb25f0b77904ba43a7a

See more details on using hashes here.

File details

Details for the file aiforecastts-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aiforecastts-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for aiforecastts-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc25e843969c080c23cb02c5a75531d9cb71ab6f8713a41ce53b15c94d9b5fd
MD5 0171baecafdc4e8ca1751ef6bab48d14
BLAKE2b-256 2df23ac9353a96a5ccda67392f3091eac4e7c698d5a4571e28415543cfede33e

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