Install the library, then make your first forecast. The first run downloads the model (42 MB) after the one-time license step.
pip install yhatmodelsimport numpy as npfrom yhatmodels import ChakraTS
model = ChakraTS.from_pretrained("ChakraTS-OS-10M")history = 10 + np.sin(np.arange(500) / 24 * 2 * np.pi) # or your own seriesfc = model.forecast(history, h=48)fc has shape (48, 3): the 10%, 50% and 90% quantiles for each of the next 48 steps.
import numpy as npimport pandas as pdfrom yhatmodels import ChakraTS
model = ChakraTS.from_pretrained("ChakraTS-OS-10M")
days = pd.date_range("2025-01-01", periods=200, freq="D")df = pd.concat( pd.DataFrame({"unique_id": store, "ds": days, "y": 100 + 10 * np.sin(np.arange(200) / 7 * 2 * np.pi)}) for store in ["store_1", "store_2"])fc = model.forecast(df, h=7, level=[80, 95])fc has one row per store and future day, with the columns unique_id, ds, q2.5, q10, median, q90 and
q97.5: the median and the 80% and 95% intervals.
yhatmodels forecast sales.csv --h 7 --level 80,95 -o forecast.csvsales.csv has one row per series and date, with the columns unique_id, ds and y. forecast.csv gets one
row per series and future date, with the median and the intervals.
Your dataArrays and DataFrames: shapes, columns, missing values and frequency.
CovariatesUse what you know about the future: prices, promotions, weather.
BacktestingSee how the model would have done on your own history.
ChakraTS-OS-10MSize, context, horizon, speed and benchmark results.

