Python library
Section titled “Python library”The full history is in CHANGELOG.md.
- 0.2.2:
yh.tune(...): fine-tune ChakraTS on your series (Tuning on your data);forecast(..., tune=),yh.tunes(),yh.get_tune(), andyhatlabs tune/forecast --tunein the CLI;forecast(preset="pro"): slower, slightly sharper;yhatlabs --version;check()finds a date column by its values and namestime_col=when there is none;check --target-colin the CLI;estimate_table()prices a regression’s ranges (it guesses regression from the target, and takesquantiles=);- a horizon above 2,048 steps says to forecast at a coarser frequency.
- 0.2.1 (2026-10-28):
- tables too large for a direct call run as background jobs, and the call waits for them;
background=Truereturns aJob(status(),wait(),result(),cancel()); compare=Trueonpredictandyh.compare(...): XGBoost, a random forest and a linear model (LightGBM on request) and a naive baseline on the same rows, scored withcomparison.score(actual, ChakraTab=res);preset="pro"(the same as"full");task=also takes"regression"and"classification";store=Falseonforecast,predict,fitandcompare: the call isn’t shown in your Logs;- credits as decimals (
usage["credits"] == 0.02);estimate_table()asks the API and returnstokenstoo; forecasts split over several requests add up their credits infc.usage; - fits kept 30 days after their last use by default (
ttl_days=, 1 to 365);model.save()stores a sample of up to 2,000 training rows,save(path, sample=False)leaves it out;model.usageholds what the fit cost; yh.explain_forecast(...): how much each covariate moves the forecast;yh.anomaly_stream(...): anomaly scores for points as they arrive;yhatlabs.outliers(train, data): rows unlike the training rows, locally, with no key;- Spark, Dask, Ray and polars (lazy too) tables as input;
- one table can carry the future of known covariates (rows after the last value, target blank);
evaluate(): the seasonal-naive baseline repeats the last week on daily data and the last year on weekly data;- CLI:
--jsonbefore or after the command,--preset pro,predict --compare,--no-store; - clearer errors for levels, presets and
freq=;JobFailedError.job_id; ROC AUC in comparisons.
- tables too large for a direct call run as background jobs, and the call waits for them;
- 0.2.0 (2026-10-15):
- a model that is starting up is waited for, up to 5 minutes, instead of failing after the usual retries;
- forecasts:
mean=True,fc.intervals(80),fc.to_wide(),fc.prob(above=...); - tables:
evaluate_table(shuffled, grouped or time-ordered folds, with calibration),out_of_rangeandnoveltyon every prediction,res.prob(above=...),model.effect(col), several targets in onefit; yhatlabs.plotsfor every result;- input checks before sending: irregular timestamps, missing ids, empty tables, too many columns, unusable targets; integer time steps; 2-D arrays as one series per row;
- forecasts:
level=[95, 99]and any quantile level,samples=withfc.sample_paths(),history=True;yhatlabs.hierarchyto aggregate and reconcile series that add up; - tables:
groups=andtime_col=onfit,predictandevaluate_table;set_coverage=for prediction sets;estimate_tablefor the credits of a call; large tables uploaded once automatically; - an
Idempotency-Keyon every POST, gzip for large bodies, and API capability flags; mask_columns=Truesends column names asc0,c1, … and keeps your names in every result;- the new API paths (
/v1/series/...,/v1/table/...); 0.1.1 calls the old ones.
- 0.1.1 (2026-10-15): requests work without the optional
orjsonpackage; CI tests the install without extras. - 0.1.0 (2026-10-15, yanked): first release. Forecasting, backtesting, scenarios, anomalies and gaps; fits, intervals, importance and imputation; data checks; the CLI and the agent skill.
-
2026-11-13: a table request body over 4 MB reads like any other: the model,
asyncandstorein the body count, uploaded tables in it work, and a body that isn’t valid JSON is refused with a400before it runs. -
2026-11-12:
- table pricing: feature columns past the first 100 count 5% each (
GET /v1/limitstokens.tabular.columns); - a table request body over 4 MB is stored and queued as it arrives: it can’t time out while a GPU starts, its request is
kept with its log entry, and its model,
asyncandstorecan be given on the URL (?model=,?async=true,?store=false, or anX-Store: falseheader); a large body asking for another model than its URL answers400; - a feature column named
Indexno longer fails the fit; /v1/tabular/predict, the path before the rename, works again as an alias of/v1/table/predict.
- table pricing: feature columns past the first 100 count 5% each (
-
2026-10-28:
- direct table calls are sized per preset:
fastup to 100,000 training rows x 100 columns,mediumandproup to 25,000 x 100 (GET /v1/limitstabular.direct). Past that, a direct call answers413with error typeasync_required(send it with"async": true); past the hard caps (200,000 rows, 2,000 columns, 50,000,000 cells as a job),request_too_large; - a direct table call still running after about 20 minutes comes back as a job (
{"object": "job", ...}) to poll;DELETE /v1/jobs/{id}cancels a running job as well as a queued one; POST /v1/table/compare: standard models and a naive baseline on the same rows;- the presets are
fast,mediumandpro(fullis still accepted); - forecasts are counted in credits for keys of an organization.
- direct table calls are sized per preset:
-
2026-10-26: credits are counted to three decimals, at 1 credit per 1M tokens by default (was 1,000 credits per 1M tokens); every credit amount the API returns or accepts (
usage.credits, balances, caps, estimates) uses the new unit. -
2026-10-15 (paths): paths name the input, then the task:
POST /v1/series/forecast,POST /v1/table/predictand/v1/table/fits/.... The old paths (/v1/forecast,/v1/tabular/predict,/v1/fits) answer 404 naming the new ones. -
2026-10-15 (later): per-row predictive distributions for regression (intervals that vary by row,
mean, calibrated out-of-sample, wider where a row extrapolates);groupsandtime_colvalidation folds; prediction sets (set_coverage); forecastquantile_levelsbeyond 0.1-0.9,samples,seedandhistory; forecast intervals calibrated on each series’ past windows; tabular calls counted in credits (rates inGET /v1/limitspricing); per-key rate and concurrency limits (429 rate_limitedwithRetry-After); gzip request bodies; table uploads (/v1/uploads);GET /v1/openapi.json. -
2026-10-15: horizons up to 2,048 with or without covariates; clear 422 errors with the reason for unusable input (and 502 only for failures on our side);
request_idin every error;freqmust be a pandas alias; class labels in their own type (1,true); intervals on small regression tables; float64 handling of extreme values;Idempotency-Keyon fits and tabular predict;capabilitiesinGET /v1/limits. -
2026-10-14: stored fits (
/v1/fits), regression intervals, column importance,GET /v1/limits.

