AI-powered Time Series Forecasting Library
Project description
AIForecastTS
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
- Repository: https://github.com/tuanthescientist/aiforecastts
- Project: https://aiconsultant.org (AI Forecast)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiforecastts-0.1.1.tar.gz.
File metadata
- Download URL: aiforecastts-0.1.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2844b11163f2a918c40ee794e6778f9e086165e2539125977d47d7f12dbceb10
|
|
| MD5 |
10de26c148812ca5b5758ad4ae5463bd
|
|
| BLAKE2b-256 |
b0f9b6761a7e5b9598974b09e2b93ee6525d94a2f8d645722db42a39a2e66c26
|
File details
Details for the file aiforecastts-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aiforecastts-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fa3a6c08767900ca80a12a33462bca8bc59bda43af3f2e070a8aa1717c7dcd1
|
|
| MD5 |
c82a3293072c73f4fbcf0eb034e9fc3a
|
|
| BLAKE2b-256 |
4ae1df434d18e94ea4af7a6bc5541bd85332fde18cebeb4762b77f8257d2fa9b
|