Skip to content

Changelog

All significant changes to this project are documented in this release file.

Legend
Feature New feature
Enhancement Improvement in existing functionality
API Change Changes in the API
Fix Bug fix
Docs Documentation improvement

0.5.0 Nov 11, 2026

The main changes in this release are:

  • Feature ForecastingAssistant.profile() reads CSV files as the spreadsheets of most of Europe write them: dates written day first, . between thousands and files saved as cp1252, with the new arguments dayfirst and thousands for the files that do not tell. See the CLI guide (#86, #96, #97).

  • Feature The predictions of ForecastingAssistant.backtest() and compare() carry the step of the horizon and the observed value y_true, and their metrics the number of points measured (n_evaluated) and, with a prediction interval, its coverage and mean width. A new IntervalCoverageWarning says when the interval covers clearly less than its nominal level (#112, #137).

  • Feature The Timestral models of Mistral AI and TiRex-2 of NX-AI, new in skforecast 0.27.0, can be the estimator of a ForecasterFoundation plan (#140).

  • Enhancement Missing values are checked before anything runs, with advice that works for the estimator of the plan: ForecastingAssistant.backtest() and compare() name the folds, series and columns at fault instead of failing inside the script, and a single series with missing target values inside the test folds is measured on the dates with a value (#105, #119, #123, #139).

  • Enhancement MCP server: the description of each tool says where it goes in the workflow, and new notices tell the agent when a forecast comes from a plan that was never measured, when the estimator is not the recommended one and when an interval covers less than its nominal level. See the MCP server reference (#109, #110, #112, #126).

  • API Change ForecastingAssistant.backtest() and compare() stop before an expensive run (above 50 estimator fits, or 2000 inference windows of a foundation model) with a CostNotConfirmedError that states its cost, until confirm_cost=True (--confirm-cost in the CLI) confirms it. The MCP server asks agents for the number of that cost (#113).

  • API Change The default metrics of ForecastingAssistant.plan() have RMSE (root_mean_squared_error) instead of MSE, and the metrics of forecast() with test_size name their columns as those of backtest() (mean_absolute_error instead of MAE) (#114, #117).

  • API Change skforecast-ai now requires skforecast>=0.27.0. The strategy of ForecastingAssistant.create_cv() no longer carries the differentiation order of its plan, so one strategy serves plans of any order (#106, #115).

  • Fix Three wrong results, fixed with skforecast 0.27: ForecasterStats returned the 95 % interval whatever the interval, ForecastingAssistant.compare() of several series could rank candidates with different lags in the wrong order by MASE, and a TabICL or TabPFN-TS forecast used exogenous columns that had no future values (#112, #143, skforecast#1479).

  • Fix Several series: long-format data with numeric series ids or a (series_id, date) MultiIndex failed in every run, and ForecastingAssistant.backtest() left out, without a warning, the series that no fold or only some folds could forecast (#90, #91, #103, #123).

Before upgrading

skforecast 0.27.0 is the minimum version of skforecast: installing skforecast-ai 0.5.0 upgrades it, and several of the changes below come from it.

Some results change with this version, without any change in your code:

  • plan(): the default metrics have root_mean_squared_error instead of mean_squared_error (pass it in metric to keep it) and leave MAPE out for a target at or around zero. The estimator can change with ForecasterDirectMultiVariate (Ridge where it was LGBMRegressor) and with wide data whose series start or end with missing values; pass estimator to keep the previous one.
  • backtest() and compare(): the predictions have the columns step and y_true (level, fold, step, y_true, pred, ...) and the metrics end with n_evaluated, also a column of the table of compare(). With several series, the predictions are missing at the dates without an observed value.
  • backtest() and compare(): MASE and RMSSE take other values, scaled the same way for every candidate, so with several series the winner of compare() can change.
  • backtest() and compare() of ForecasterStats: with a strategy that refits, the metrics change from the second fold and the run is faster, since the model selected in the first fit is kept; with an interval other than 95 %, the bounds are those of that interval.
  • backtest() and compare() of a single series with missing target values inside the test folds run, measured on the dates with a value, instead of raising (except with ForecasterStats).
  • backtest() raises for a series that no fold forecasts, which it left out before, and, with an estimator that does not accept missing values, for a missing exogenous value that a test fold reads. A candidate of compare() that hits one of them fails and is ranked last, with that error.
  • compare() without candidates on the strategy of a plan with use_exog=False: every candidate leaves the exogenous variables out, so the ranking can change.
  • forecast() of several series in wide format: the rows of the predictions follow the order of the columns of the data instead of the alphabetical order, with the same values.
  • forecast() of a TabICL or TabPFN-TS plan with future exogenous values for only some columns or some series gives other predictions, without the columns that have no future values.
  • forecast() with test_size on data in a time zone with daylight saving time ends the training an hour later, at the right date, when the test set starts after the spring change: other predictions and metrics.
  • The generated scripts change, with the same predictions: the series ids of long data are read as text, the dates that write the day and the month as numbers are read with their format, and future exogenous values given as a file are read from that file by its path instead of exog_future.csv.
  • MCP server: cost.n_fits of the compare tool counts the trainings of all its candidates instead of those of the shared strategy.

And some code needs to be updated:

  • backtest() and compare() of an expensive run (above 50 estimator fits, or 2000 inference windows) raise CostNotConfirmedError before running instead of warning with LongTrainingWarning. Pass confirm_cost=True (--confirm-cost in the CLI); the tools of the MCP server take the number of the cost in confirm_cost.
  • create_cv(): cv_config (also that of the results of backtest() and compare()) and the JSON of CVResult.cv have no differentiation. Read the order from the plan, plan.forecaster_kwargs['differentiation'].
  • profile() raises data_unreadable where it guessed before: for a . that can be a decimal mark or a thousands separator (pass decimal or thousands) and for dates that read both day first and month first when their regularity does not tell (pass dayfirst). A MultiIndex with a level without a name raises InvalidInputError: name the levels.
  • forecast() with test_size: ForecastResult.metrics names its columns as backtest() does, mean_absolute_error instead of MAE..., and the series in levels instead of series, a column a single series no longer has.
  • plan() raises InvalidInputError for an unknown key of an entry of window_features, which it ignored, and for a value of estimator_kwargs that the estimator rejects, which failed when the plan ran.
  • compare(): a candidate that fails with an error of skforecast-ai has CandidateFailure.error_type 'InvalidInputError' (or another class of skforecast_ai.exceptions) instead of 'ValueError', and a candidate cannot be named 'Strategy plan'.
  • --exog of the CLI reads the dates of the file from the date column of the data: name that column as in the data.
  • MCP server: get_failure with the id of a comparison requires candidate, and create_cv rejects fixed_train_size with refit false or null.

See Added, Changed and Fixed.

Added

Data and profiles

  • New argument thousands of ForecastingAssistant.profile() (--thousands in the CLI, thousands in the profile tool of the MCP server), recorded as DataProfile.csv_thousands and passed to pd.read_csv by the generated script. See the CLI guide (#86).

  • New argument dayfirst of ForecastingAssistant.profile() (--dayfirst or --monthfirst in the CLI, dayfirst in the MCP server) for text dates that read both day first and month first. The profile records the format of the dates as DataProfile.date_format. See the CLI guide (#96).

  • New attribute closed_weekdays of DataProfile: the days of the week on which every missing timestamp falls when the data never has a date on them (a shop closed on Sundays). The warning of create_cv() gives the advice of the closed days only then (#119).

Plans and overrides

  • New metric root_mean_squared_error (RMSE, in the units of the target) for metric of ForecastingAssistant.plan(), refine_plan(), forecast() and compare(), --metric in the CLI and the MCP server, whose MetricUnitNotice gives its unit (#114).

Forecasting

  • ForecastingAssistant.forecast() and forecast_code() take the path of a CSV file in exog, read as the data are read (date column, series ids, separator), and the script reads that file by its path. The forecast-code command of the CLI gains --exog, as forecast has. See the CLI guide (#99, #125).

Backtesting and comparison

  • New argument confirm_cost of ForecastingAssistant.backtest() and compare() (--confirm-cost in the CLI, confirm_cost in the tools of the MCP server) and new error CostNotConfirmedError (cost_not_confirmed in the MCP server), raised before an expensive run that it does not confirm. See Changed and the MCP server reference (#113).

  • New attribute cost of the ComparisonResult of ForecastingAssistant.compare(): the trainings, estimator fits and inference windows of each candidate and of all of them together, the baseline included, counted before any candidate runs (#108, #113).

  • New IntervalCoverageWarning of ForecastingAssistant.backtest() and compare() when the prediction interval covers clearly less than its nominal level (more than two binomial standard errors and 5 points below it), naming the series or the candidates; an IntervalCoverageNotice in the MCP server. See Exceptions (#112).

  • New FoldsLeftOutWarning of ForecastingAssistant.backtest() and compare() when a series was not forecast in some test folds where it has values (one that starts late, with refit), so its metrics and the average across series use fewer folds, which went unnoticed before; a notice in the MCP server. See Exceptions (#123).

Foundation models

  • The Timestral models of Mistral AI (mistralai/Timestral-5M to -209M) and TiRex-2 of NX-AI (NX-AI/TiRex-2), new in skforecast 0.27.0, can be the estimator of a ForecasterFoundation plan. The MCP server runs TiRex-2 (Apache-2.0) by default, and Timestral, whose license gives no rights to companies above USD 20 million of monthly revenue, only with --allow-model mistralai/Timestral. See the MCP server guide (skforecast#1454, skforecast#1463, #140).

MCP server

  • The forecast tool adds an UnmeasuredPlanNotice to a forecast of the future when no backtest, compare or forecast with test_size of the server measured its plan, so an agent does not present it as reliable or give it the accuracy of another plan. See the MCP server reference (#109).

  • The backtest and forecast tools carry an EstimatorNotRecommendedNotice when the estimator of the plan was chosen instead of the one the rules recommend for its forecaster (after a MissingValuesNotice, say). It names both and asks the agent to tell the user. See the MCP server reference (#110).

Changed

Data and profiles

  • In wide-format data, each series of DataProfile.series_lengths spans the dates from its first to its last value, as in long format, instead of the whole frame. n_total_observations, which sizes the estimator, follows them, so the plan of series that start or end with missing values may choose another estimator (#103).

  • The methods that take a saved profile read the file it was built from with its separator, decimal mark and thousands separator, so what was given to ForecastingAssistant.profile() holds for them; another file is still read as it is written (#86).

  • Two errors about the data name the problem: a target with numbers written with a thousands separator or % (10,025.1, 12.5%) raises a DataContentError that names that format, and the error of ForecastingAssistant.plan() for dates without a regular frequency describes their spacing instead of asking for ISO 8601 dates (#86, #96).

Plans and overrides

  • The default metrics of ForecastingAssistant.plan() have RMSE (root_mean_squared_error, in the units of the target) instead of MSE, in squared units: MAE, RMSE and MASE, plus MAPE away from zero. The generated scripts and the metrics of every result change; the metric that ranks and chooses does not (#117).

Forecasting

  • The metrics of ForecastingAssistant.forecast() with test_size have the columns of those of backtest(), in ForecastResult, the CLI and the MCP server: the names of the metrics (mean_absolute_error instead of MAE...) and levels instead of series, which a single series no longer has. Its description says that they come from a hold-out evaluation, not from a forecast of the future (#109, #114).

  • The predictions of ForecastingAssistant.forecast() of several series in wide format follow the order of the columns of the data, where they followed the alphabetical order of the series: skforecast 0.27 keeps the order in which the series are given. The values are the same (skforecast#1435, #123).

Backtesting and comparison

  • ForecastingAssistant.backtest() and compare() raise CostNotConfirmedError before an expensive run (above 50 estimator fits, or 2000 inference windows; for compare(), all its candidates together) instead of warning once it started; the error states the cost and the changes that lower it. Pass confirm_cost=True to run it. The MCP server takes only the number of the cost, which create_cv and the error give. See the CLI guide (#113).

  • The predictions of ForecastingAssistant.backtest() and compare() carry the step of the horizon and the observed value y_true of skforecast 0.27, and their metrics end with n_evaluated, the number of points each row is measured on, which the table of compare() shows without ranking by it. y_true holds values of your data, so ask() sends them only with send_data_to_llm=True. See LLM configuration (#137).

  • With a prediction interval, the summary of ForecastingAssistant.backtest() (and what ask() and the MCP server read) gives, by series, the coverage and the mean width that skforecast measures (coverage, interval_width) next to the nominal coverage, and the table of compare() adds both columns without changing the ranking (#112).

  • ForecastingAssistant.backtest() and compare() of a single series run when a test fold has missing target values, which they rejected: skforecast 0.27 leaves those dates out of the metrics, and the explanation of backtest() counts them. They still raise with ForecasterStats, which cannot train on them, and when no test date has a value; forecast() with test_size still rejects them (#139).

  • ForecastingAssistant.backtest() and compare() with an estimator that accepts missing values warn, without failing, when a test fold reads a missing exogenous value, naming the columns and the dates, as forecast() does with the future values (a notice in the MCP server) (#123).

  • The errors and warnings about missing values name the estimator that the rules choose for the data (RandomForestRegressor below 250 observations, LGBMRegressor from 250) instead of always LGBMRegressor, put first the advice of a business closed on the missing weekdays, and say where the value is: the test folds that hold it in ForecastingAssistant.backtest(), the last window in forecast() (#105, #130, #131).

  • The strategy of ForecastingAssistant.create_cv() no longer carries the differentiation order of its plan, which skforecast 0.27 takes from the forecaster: the backtesting scripts build TimeSeriesFold without differentiation, cv_config and the JSON of CVResult.cv lose that key, and one strategy serves plans of any order, so compare() runs every candidate on it. The predictions are the same (#115).

  • The description of a cross-validation strategy, in ForecastingAssistant.create_cv(), backtest(), compare(), the context of ask() and the MCP server, says how many steps the last fold has when it is shorter than the horizon: 6 folds (the last one has only 2 steps). The configuration of the strategy (cv_config) adds last_fold_steps then (#130, #133).

  • ForecastingAssistant.compare() builds the plans of all the candidates before any of them runs: their warnings come first, and a candidate whose plan cannot be built, or that fails a check backtest() makes before running (a series that no fold forecasts, a missing value that a fold reads), fails then and is not counted in the cost (#113, #123).

  • A candidate of ForecastingAssistant.compare() that fails with an error of skforecast-ai is named by its class (InvalidInputError) in CandidateFailure.error_type, the table, the warnings and AllCandidatesFailedError, instead of the built-in class it derives from (ValueError). The MCP server now sends its message, and get_failure with the id of a comparison requires candidate (#121).

Statistical models

  • ForecastingAssistant.backtest() and compare() of ForecasterStats with a strategy that refits give other metrics from the second fold, and run faster: skforecast 0.27 keeps the model that the automatic Arima selected in the first fit, which the scripts already asked for with freeze_params=True (skforecast#1425, #116).

Generated scripts

  • The scripts of long-format data read the column of series ids as text (dtype={'store': str} in pd.read_csv) and turn the ids into text before the reshape, also those of the future exogenous variables. The predictions are the same; future exogenous variables with integer ids now match the same ids of the data written as text (#90).

  • The scripts read the dates with their format when they write the day and the month as numbers or are whole numbers such as 20200131 (format='%d/%m/%Y'), and the future exogenous values with their own. With . between thousands, the date column is read as text. The predictions are the same (#96).

LLM layer

  • ForecastingAssistant.ask() quotes MAPE as the fraction the metrics give, never as a percentage, and the MetricUnitNotice of the MCP server gives the unit of sMAPE, already a percentage from 0 to 200. The context of ask() also names the metrics a backtesting script computes and says that the horizon of a plan (steps) is the user's (#104, #128).

  • The skills of ForecastingAssistant.ask() are chosen within the room that a window of 32,768 tokens leaves after the context, counting the API reference only with include_reference=True. A skill that does not fit whole is sent as its SKILL.md alone, recorded as '<name>/SKILL.md' in AskResult.skills, and baseline-forecasting is no longer loaded with several series. See Skills (#137, #141).

MCP server

  • The description of each tool says where it goes in the workflow: which id it takes, which tool takes the id it returns and which tool to use instead when the two can be confused. The skill is shorter, says that a coverage measured on few values is a rough check, and the model_not_allowed hint tells the agent to stop until the user chooses. See the MCP server reference (#126, #130).

  • The CostNotice of create_cv and the cost_not_confirmed error give the estimator fits of each cheaper strategy: refit=false and the smallest integer refit at or below 50 fits, counted as the cost of the run is. See the MCP server reference (#130).

CLI

  • --exog of the forecast and forecast-code commands of the CLI reads the dates of the file from the date column of the data, as exog_path of the MCP server does: a file whose dates are in a column named otherwise (fecha for date), which was read before, raises an error naming its columns. Name that column as in the data (#125).

Dependencies

  • skforecast-ai now requires skforecast>=0.27.0, whose fixes it relies on instead of working around them (#106).

Fixed

Data and profiles

  • Fixed an issue in ForecastingAssistant.profile() and the MCP server where a CSV file whose first row has more fields than its header (a separator at the end of every row) gave a target without values or a profile with the dates as an exogenous variable. It now raises data_unreadable, as does a column without name and values (#85).

  • In CSV files separated by ; or tabulators, . between thousands was read as a decimal mark without a warning (1.020 as 1.02), and 1.705,11 failed as a target that is not numeric. It is now read as thousands separator when the file says so; otherwise ForecastingAssistant.profile() raises data_unreadable and asks for thousands or decimal (#86).

  • Dates written day first (31/01/2024, the Excel of most of Europe) were read month first or rejected, and dates written as whole numbers (20200131) were taken for an exogenous variable. ForecastingAssistant.profile() now reads them day first when a day after the 12th says so or, when no date tells, in the only order with a regular frequency, with a note in DataProfile.warnings; otherwise it asks for dayfirst (#96).

  • CSV files that are not UTF-8, as Excel saves them on Windows, raised data_unreadable when a header or a category held an Ʊ or an accent. ForecastingAssistant.profile() now reads them as cp1252, recorded as DataProfile.csv_encoding with a note in DataProfile.warnings, and the generated script passes encoding='cp1252'. UTF-16 files still raise data_unreadable, asking for UTF-8 (#97).

  • ForecastingAssistant.profile() found no frequency in daily data with regular or frequent gaps (a shop closed on Sundays, a day in four missing at random), so plan() rejected them. It now infers 'D' ('B' for business days), also in long-format data, and warns about the missing dates, naming the weekdays they always fall on (#98).

  • Fixed an issue with long-format data whose series ids are numbers (001, 1, 10), where every backtest, forecast and comparison failed with KeyError: 1 and ForecastingAssistant.profile() dropped the leading zeros. The ids are now kept as written; integer ids of a DataFrame become text, so its series are ordered as text (1, 10, 2) (#90).

  • Fixed an issue with long-format data indexed by a (series_id, date) MultiIndex, where ForecastingAssistant.forecast(), backtest() and compare() raised ForecastExecutionError, and profile() raised KeyError when the levels had no names. A MultiIndex that is not two levels named with text now raises InvalidInputError in every method, with a hint (#91, #94).

  • Fixed an issue in ForecastingAssistant.profile() (and the profile command and MCP tool) where target as a list was accepted with series_id_column, which was ignored or gave a misleading error about repeated timestamps, or with a repeated column, profiled as two series. Both now raise InvalidInputError naming the argument (#100).

  • ForecastingAssistant.profile() gave no warning for numbers written as text in an exogenous column (12%, - for a missing value), used then as a categorical variable, nor for its missing values below a rate of 20 %. Both now add a warning naming the column (a DataProfileWarning notice in the MCP server) (#95).

Plans and overrides

  • ForecastingAssistant.plan(), refine_plan() and compare() accepted arguments that were ignored or failed when the plan ran: an unknown key of an entry of window_features (min_periods), a value of estimator_kwargs that the estimator rejects (alpha='abc' for Ridge), mean_squared_log_error on a target at or below -1 and a repeated metric. They now raise before anything runs (invalid_argument in the MCP server) (#117, #121, #125, #137).

  • Fixed an issue in ForecastingAssistant.plan() and refine_plan() where ForecasterDirectMultiVariate got the estimator chosen for the series pooled (LGBMRegressor from 250 observations), which on few dates per step predicted a constant. The rule now counts the dates the series share, and the explanation says so (#102).

  • Fixed an issue in ForecastingAssistant.plan() where the default metrics of a target that crosses zero (profits, temperatures) included MAPE, which reached values such as 3e13. MAPE is now left out when any series touches or crosses zero, and the explanation says why; asked for in metric, it comes with a warning (#104, #117).

  • Fixed an issue in ForecastingAssistant.refine_plan() where switching to ForecasterStats, ForecasterFoundation or the baseline dropped the differentiation, calendar features and target transformer without a warning, as a new estimator did with the estimator_kwargs of the previous one. A PlanEditsDiscardedWarning (a notice in the MCP server) now names what is left out and who chose it (#107, #118).

  • An estimator whose package is not installed (XGBoost, CatBoost) was only reported when the plan ran, and ForecastingAssistant.compare() without candidates on several series ran XGBRegressor, which no extra installs, and failed. plan() now warns with MissingBackendWarning (a notice in the MCP server, whose missing_dependency error says how to install it), and compare() leaves that candidate out with the same warning (#124).

  • A plan with use_exog=False was not followed everywhere: ForecastingAssistant.compare() without candidates on its strategy ran the candidates with the exogenous variables, so the winner needed their future values, and describe(), the context of ask() and the notices of the MCP server carried the warnings about the exogenous columns. Both leave them out now (#118, #130).

Forecasting

  • The script of a forecast with future exogenous values read from a file (exog_path of the MCP server, --exog of the CLI) read exog_future.csv from its working directory as to_csv() writes it, so it failed outside the session. It now reads that file by its path with its separator, decimal mark, encoding and date format. See the MCP server guide (#99).

  • ForecastingAssistant.forecast() of data without dates (a RangeIndex) with future exogenous values from a file failed, as the first column of the file was read as its dates. The rows of the file are now the steps of the horizon in order, and positions that do not follow the data raise a clear error (#125).

  • ForecastingAssistant.forecast() with test_size as a date with a time zone ('2024-04-09T00:00:00Z') raised TypeError (an internal_error in the MCP server). It is now placed on the dates in their zone, or raises InvalidInputError when the data has none. On data in a zone with daylight saving time, the test set no longer starts an hour early after the change (#121).

  • ForecastingAssistant.forecast() with a test_size that leaves fewer observations to train on than the window of the forecaster, and create_cv() without initial_train_size for a plan whose steps are half the data or more, failed inside the script or with an error about an argument that was never passed. Both now raise insufficient_data before running, with the longest horizon that fits (#121).

  • ForecastingAssistant.forecast() of a TabICL or TabPFN-TS plan whose future exogenous values lacked some columns, or some series, still fed the model the history of those columns, although a warning said they were ignored: the predictions were wrong. Fixed by skforecast 0.27 (skforecast#1479).

Backtesting and comparison

  • Fixed an issue in ForecastingAssistant.backtest() with ForecasterRecursiveMultiSeries, or a ForecasterFoundation model on several series, where a series that no fold could forecast (too short for the window, starting late, ending before the folds, or without usable values before every fold) was left out of the predictions and of the average across series without a warning. It now raises InvalidInputError naming those series, and a candidate of compare() fails with it (#103, #105, #123).

  • ForecastingAssistant.backtest() and forecast() failed inside the script when missing values left a fold without training rows ("All samples have been removed due to NaNs") or, with an estimator that does not accept them, when a test fold read a missing exogenous value ("Input contains NaN"); with several series those predictions were left out of the metrics without a warning. They now raise DataContentError before running, naming the columns, series and dates (#105, #119).

  • The advice on missing values was wrong in places: ForecastingAssistant.create_cv() and the MCP server promised that an estimator that accepts them let every fold of backtest() run, and plan() proposed dropna_from_series for missing exogenous values. They now say only what works, and create_cv() also warns with the differentiation and for exogenous values (#105).

  • ForecastingAssistant.create_cv() gave no warning of prediction intervals estimated from too few residuals with ForecasterRecursiveMultiSeries or ForecasterDirectMultiVariate, as it does with a single series. It now counts the rows of each series in the first training window, also when a series starts later, and names the series with fewer than 100 (#101, #103).

  • ForecastingAssistant.create_cv() accepted skip_folds for a ForecasterStats plan, whose backtest then failed inside the script. It now raises InvalidInputError naming skip_folds (invalid_argument in the MCP server), and compare() without candidates leaves ForecasterStats out of a strategy with skip_folds, with a warning (#118).

  • ForecastingAssistant.compare() applied the threshold of a long training (50 estimator fits) to each candidate, so candidates cheap one by one ran 78 fits without a warning. It now applies it to all the candidates together, before any of them runs, and states the total and what each candidate adds (#108, #113).

  • Fixed an issue in ForecastingAssistant.compare() with candidates and the CVResult of a refined plan, where that plan was not compared without saying so, and a candidate could take the name 'Strategy plan'. The text of the strategy now names the candidate that runs that plan or, with a UserWarning, says it was not compared; 'Strategy plan' is reserved (#123, #130).

  • With several series, ForecastingAssistant.compare() could rank candidates with different lags in the wrong order by MASE, their default metric, because the scale of MASE and RMSSE depended on the lags. With skforecast 0.27 it is the one-step naive forecast over the observations known at each prediction, as ask() and the MCP server now describe it (#143).

  • ForecasterStats with an interval other than 95 % ([0.1, 0.9], say) returned the 95 % interval in ForecastingAssistant.forecast(), backtest() and compare(). Fixed by skforecast 0.27 (skforecast#1416, #112).

Generated scripts

  • The script of data without dates passed in memory printed a pandas UserWarning ("Could not infer format") when run, as it read the positions saved by to_csv() with parse_dates=True. It now reads them as they are; the predictions are the same (#125).

CLI

  • On Windows, --output of the CLI wrote the script in the encoding of the system, so a script with a column named outside ASCII (aƱo) failed with a SyntaxError. Scripts, JSON outputs and the configuration file are now written in UTF-8 (#148).

LLM layer

  • ForecastingAssistant.refine_plan() and create_cv() with a prompt fell back to the deterministic result, with a warning, when the LLM was Claude Sonnet 5.5 or Opus 5.5 and pydantic-ai was older than 2.52, which forced a tool_choice those models reject. The llm extra now requires pydantic-ai 2.52 or later (#129).

MCP server

  • cost.n_fits of compare was the trainings of the shared strategy, not of the comparison; it is now the total, like estimator_fits. The CostNotice of create_cv offered refit also where it lowers nothing (ForecasterStats, foundation models, a strategy that trains once); it now names only the changes that lower the cost. See the MCP server reference (#108).

  • The create_cv tool accepted fixed_train_size with refit false or null, with a warning, while its description said it was an error. It now rejects it (invalid_argument); the Python API still warns, as skforecast accepts it. See the MCP server reference (#118).

  • The FutureExogNotice asked for the future values of categorical columns that ForecasterStats or a foundation model without categorical covariates does not read, which forecast then rejected in the file of a foundation model. It now names only the columns the model reads (#118).

  • The first get_code held every other call while a long run was going, and the requirements of the script of a strategy for a foundation model listed its backend, which that script does not load. A backend given with a version (tabpfn-time-series>=1.3) is now pinned to the installed version as the other packages are, keeping its extras (tfc-t0[torch]==0.6.1) (#124, #145).

0.4.2 Oct 12, 2026

The main changes in this release are:

  • Fix ForecastingAssistant.compare() without candidates, on the strategy of a refined plan, ranks that plan as the row 'Strategy plan', and its summary says how many configurations beat the baseline (#71).

Before upgrading

Some results change with this version, without any change in your code:

  • compare() without candidates, on a CVResult created for a plan that is none of the candidates of the profile, has one more row, 'Strategy plan', which runs that plan. Pass candidates to choose the rows.
  • compare(): the sentence of explanation about the baseline counts the configurations that beat it instead of those that do not, so code that parses that text must be updated.

Added

  • New field strategy_plan_name of ComparisonResult: the row of the comparison that runs the plan the strategy of create_cv() was created for, or None (#71).

Changed

  • The first start of the MCP server fits in the 30 seconds Claude Code waits: the server connects before loading pandas, scikit-learn and skforecast, which it loads in the background (7 seconds instead of 39 on macOS with an empty uvx cache; the first tool waits for that loading, about 30 seconds the first time). import skforecast_ai no longer loads them either. See MCP server for coding agents (#72).

  • The MCP server is listed in the MCP gallery of VS Code, and its install button opens that entry, with logo and README, and installs the latest version pinned in args. Where the gallery is turned off, it installs the server as before. See MCP server for coding agents (#87, #88).

  • Dependencies: statsmodels 0.15 is allowed (statsmodels>=0.13.2,<0.16, as in skforecast), the minimum pandas is 2.2, the one skforecast 0.26 already required, and numpy, scikit-learn and scipy are declared as direct dependencies, with the minimum versions of skforecast.

Fixed

  • CSV files separated by ; or tabulators, with , as decimal mark (what a spreadsheet exports in most of Europe), failed with a target column not found. The Python API, the CLI and the MCP server now detect the separator and the decimal mark (or take them as sep and decimal of ForecastingAssistant.profile()), the generated script reads the file with them, and the MCP server also accepts .tsv and .csv.gz files. See the CLI guide (#74).

  • ForecastingAssistant.compare() without candidates, on the strategy of a plan refined with another estimator, lags or window features, did not run that plan. It now runs as the row 'Strategy plan', and the summary names that row and counts the configurations that beat the baseline, not those that do not (#71).

  • ForecastingAssistant.compare(): when the two best configurations have the same value of the ranking metric, the summary says they are tied instead of "0.0% ahead" (#71).

  • The cost of create_cv in the MCP server, for a compare without candidates, counted forecasters that compare does not run (the multivariate one with several series) and only one of the estimators it compares when a single forecaster is left. It now counts the candidates that compare runs, the plan of the strategy included. See MCP server for coding agents (#71).

  • pip install "skforecast-ai[llm]" did not install the Groq client, so a groq: model failed with an ImportError unless the groq extra was installed too. The llm extra now includes it, as the installation guide says.

0.4.1 Oct 9, 2026

The main changes in this release are:

  • Enhancement New option --allow-project-dir of skforecast-ai mcp, which the plugin of Claude Code now uses: the server reads the project of the session from the environment and does not start in the home directory. See MCP server for coding agents.

Added

  • New option --allow-project-dir of skforecast-ai mcp, in place of --allow-dir: the allowed directory is the project of the session, read from the environment variable CLAUDE_PROJECT_DIR that Claude Code sets. The server stops if it is not set, or if it is the home directory or the root of a disk. See MCP server for coding agents (#61).

Changed

  • The plugin of Claude Code starts the server with uvx skforecast-ai-mcp==<version> --allow-project-dir. It reads the same project as before, but no longer starts when Claude Code is opened in the home directory or in the root of a disk: open it in the folder of the project (#61).

Fixed

0.4.0 Oct 9, 2026

The main changes in this release are:

  • Feature New MCP server, so coding agents (Claude Code, Cursor and other MCP clients) can run the deterministic workflow as tools: profile a CSV file, plan, backtest, compare and forecast, each result with the script that produced it. It installs as a Claude Code plugin or with the new mcp extra. See MCP server for coding agents (#35, #36)

  • Feature New keyword-only arguments in ForecastingAssistant.plan() and the methods that build a plan choose a decision instead of the rules (metric, use_exog, differentiation, calendar_features, target_transformer, dropna_from_series), and exog_columns in profile() chooses the exogenous columns. The CLI takes the same options. (#41)

  • Feature ForecastingAssistant.compare() adds a seasonal naive baseline (ForecasterEquivalentDate) to the leaderboard and says whether the best configuration beats it. 'ForecasterEquivalentDate' can also be chosen as forecaster. (#27)

  • Feature ForecasterFoundation forecasts several series and follows what skforecast declares for the chosen model (context length, exogenous variables, quantiles) instead of assuming Chronos-2. The new foundation extra installs the backend of Chronos-2. (#29)

  • Feature Every error derives from the new SkforecastAIError, with a stable code, the argument at fault in field and, for some, a remedy in hint, so a program can react to it without parsing the message. See Exceptions and warnings (#32)

  • API Change ForecastingAssistant.create_cv() trains the forecaster once by default (refit=False) instead of refitting it in every fold, so the metrics of backtest() and compare() with the default strategy change. Pass refit=True to keep the previous behavior. (#33)

  • API Change Arguments and plans that were ignored, or that failed inside the generated script, now raise before anything runs: invalid arguments of plan(), a ForecastPlan edited by hand or loaded from JSON that the scripts do not support, and a plan or a profile that does not match the data. (#31, #33, #37)

  • API Change skforecast-ai now requires skforecast>=0.26.0, and lightgbm is a dependency.

  • Fix forecast() and backtest() check the data before running (dates, missing values, future exogenous variables) and raise InvalidInputError naming the rows, where they failed inside the script or returned missing or shifted predictions without an error. (#32, #37, #43, #47)

  • Fix A crafted value in a plan or a profile loaded from JSON, or in a column name of a CSV, could inject code into the generated script that forecast() and backtest() execute. No value can run as code any longer. (#31)

Before upgrading

Some results change with this version, without any change in your code:

  • create_cv(), backtest() and compare(): the default strategy trains the forecaster once instead of refitting it in every fold, so the metrics change. Pass refit=True to keep the previous behavior.
  • compare(): the leaderboard has one more row, the baseline (baseline=False leaves it out), and with several series it compares ForecasterRecursiveMultiSeries against ForecasterFoundation by default (pass candidates to compare the estimators as before).
  • ForecasterStats (Auto-ARIMA): predictions and metrics change for quarterly data and for multiplied frequencies such as '2MS' or '3h', which now get a seasonal period.
  • backtest() and compare() with an interval on several series: the bounds change, because they are now estimated by bootstrapping, as in forecast().
  • forecast() with a ForecasterFoundation plan and an interval returns the pred, lower_bound and upper_bound columns instead of one q_* column per quantile.
  • ForecasterDirectMultiVariate plans that do not use the exogenous columns: predictions change, because those columns are no longer fitted as series.
  • profile(): rows that are not in date order and day-first text dates are read as the generated script reads them, which can change the lags and the predictions.

And some code needs to be updated: arguments that were ignored now raise, the estimator of a ForecasterFoundation plan is the Hugging Face model ID, forecast() in evaluation mode needs a test set of exactly steps observations, the result keyword of ask() is removed and the minimum version of skforecast is 0.26.0. See Changed.

Added

Plans and overrides

  • New keyword-only arguments metric, use_exog, differentiation, calendar_features, target_transformer and dropna_from_series in ForecastingAssistant.plan(), refine_plan(), forecast(), backtest() and their *_code() methods choose a decision instead of the rules; all but metric are also keys of the candidates of compare(). A value the data or the forecaster cannot apply raises ValueError. backtest() and backtest_code() also take lags and window_features. (#41)

  • New keyword-only exog_columns argument in ForecastingAssistant.profile() chooses the exogenous columns (an empty list for none) instead of using every column that is not the target, the date or the series id. The others are listed in the new DataProfile.unused_columns, and neither the plan nor the script uses them. (#41)

  • ForecastPlan.overridden_fields names the decisions you made instead of the rules, and ForecastPlan.warnings holds the text of the warnings that ForecastingAssistant.plan() emits, so both travel with the plan, its JSON and the results built from it. refine_plan() warns with the new PlanEditsDiscardedWarning when it does not keep values edited by hand in the plan. (#34, #41)

  • 'ForecasterEquivalentDate' can be chosen as forecaster in ForecastingAssistant.plan(), every method that builds a plan and the CLI --forecaster. Its plan has the task type 'baseline', an offset chosen as for the baseline of compare(), no estimator or features, and conformal prediction intervals. (#27, #37)

Backtesting and comparison

  • ForecastingAssistant.compare() adds a baseline to the leaderboard: a seasonal naive ForecasterEquivalentDate that repeats the value observed one seasonal period earlier, or the last observed value when the data has no usable seasonality. Its row is identified by ComparisonResult.baseline_name, and the explanation says whether the best configuration beats it. It is not added in some cases, such as multi-series data or a target with missing values. Pass baseline=False (--no-baseline in the CLI) to keep the previous output. (#27)

  • The cross-validation explanation of ForecastingAssistant.create_cv(), backtest() and compare() states the cost of the backtest: how many times the forecaster is trained (cv_config['n_fits']) or, for ForecasterFoundation, how many inference windows it runs (cv_config['inference_windows']). backtest() and compare() warn with skforecast's LongTrainingWarning above 50 estimator fits or 2000 windows, and compare() without candidates leaves out the alternatives above 500 fits; pass them in candidates to run them anyway. (#33, #43)

  • The result of ForecastingAssistant.create_cv() says where each value of the strategy comes from: overridden_fields, fields_without_effect, llm_configured and defaults_explanation. backtest() and compare() carry the same under cv_ names when they receive that result. (#45)

  • ForecastingAssistant.create_cv() warns when a plan with prediction intervals estimated from residuals gets a strategy whose first training window leaves fewer than 100 rows to train on, which makes the intervals too narrow. Its error for a strategy with fewer than 2 folds carries a hint with the ways out. (#47)

  • ForecastingAssistant.compare() accepts a progress_callback, called with a CompareProgress when each candidate starts and ends, to report progress outside a notebook. An exception it raises stops the comparison before the next candidate, so it can also cancel a long comparison. (#34)

Foundation models

  • ForecasterFoundation forecasts several series, in wide and long format. backtest() reports the metrics per series and aggregated, ForecastingAssistant.compare() ranks it together with ForecasterRecursiveMultiSeries on the average across series, and Chronos-2 can share information across series with estimator_kwargs={'cross_learning': True}. (#29)

  • New foundation extra (pip install "skforecast-ai[foundation]") with the backend of Chronos-2, the default foundation model. When it is not installed, ForecastingAssistant.compare() without candidates leaves ForecasterFoundation out with the new MissingBackendWarning instead of running a candidate that fails. (#29)

  • ForecasterFoundation plans follow what skforecast declares for the chosen model instead of assuming Chronos-2: its default context_length, whether it accepts exogenous variables (and categorical ones) and the quantiles it predicts. An interval the model cannot predict raises ValueError when the plan is built, and the explanation says how much history the model reads and when its weights have a restrictive license, are gated or need an account with their provider. (#29, #41)

Results and explanations

  • New describe() method on every result that ask() accepts, ForecastingProfile included. It returns, without an LLM, a plain-text description of the result, with the predictions summarized instead of listed and a length that does not grow with the number of series. See Results (#33, #34)

  • The explanation of a ForecasterDirectMultiVariate plan names the series it predicts, the first one of target. (#41)

Errors and warnings

  • Every error of skforecast-ai derives from the new SkforecastAIError, with a stable code, the argument at fault in field and, for some, a remedy in hint, so a program can react to it without parsing the message. Invalid inputs raise InvalidInputError, InvalidInputTypeError, DataNotFoundError or DataContentError, which are still a ValueError, a TypeError or a FileNotFoundError with the same messages. See Exceptions and warnings (#32, #37, #47)

LLM layer

  • Better answers from ForecastingAssistant.ask(). The skills and llms-base.txt are synced from skforecast 0.26.x, and the skills are chosen by the plan being asked about (statistical models, baselines, foundation models). What the LLM receives lists the decisions you made instead of the rules and the warnings of the plan, so the answers no longer present a chosen value as a recommendation, and it points to backtest() and compare() to measure accuracy or choose between models. (#28, #41, #46)

MCP server

  • New MCP server (skforecast-ai mcp, extra mcp), so coding agents can profile a CSV file, plan, backtest, compare and forecast as tools, each result with the script that produced it. In Claude Code it installs as a plugin. It never returns rows of your data, only reads CSV files inside --allow-dir and, unless --allow-model names another, only runs the foundation models whose license does not restrict commercial use. See MCP server for coding agents and the reference (#35, #36)

CLI

  • The commands plan, refine-plan, forecast, backtest, forecast-code and backtest-code take the new overrides (--metric, --use-exog, --differentiation, --calendar-features, --target-transformer, --dropna-from-series), with auto to go back to the rule when refining a saved plan, and profile and plan take --exog-columns. forecast and backtest also take --lags and --window-features. See the CLI guide (#41)

  • python -m skforecast_ai runs the CLI, like the skforecast-ai command. (#36)

Changed

Plans and overrides

  • ForecastingAssistant.plan() and every method that builds a plan raise ValueError before rendering the script: an unsupported estimator, an estimator_kwargs name the estimator does not accept, an interval that is not [lower, upper] quantiles, a steps that is not an integer of at least 1, and dates without an inferable frequency. So do lags or window_features passed for ForecasterStats, ForecasterFoundation or ForecasterEquivalentDate, which do not use them (the first two ignored them silently). (#27, #31)

  • A ForecastPlan built by hand or loaded from JSON raises ValidationError for what the generated scripts do not support: a forecaster that is not supported or does not match task_type, a forecaster argument or a blocking preprocessing step that plan() does not generate, or an interval without an interval_method. forecast(), backtest(), their *_code() methods and ask() validate a received plan, and a DataProfile whose frequency is not a pandas alias raises too. Plans saved with 0.3.1 load unchanged. (#31, #33)

  • A plan passed to ForecastingAssistant.forecast(), backtest() or their *_code() methods, and a profile passed with data to them or to compare(), are checked against the data: another frequency or shape, or exogenous variables the data does not have, raise ValueError instead of running with lags and features that do not fit. Data with new rows or series run with a refreshed profile, noted in DataProfile.warnings; call profile() and plan() again for data of another structure. (#37, #41)

Forecasting

  • ForecastingAssistant.forecast() and forecast_code() in evaluation mode raise ValueError unless the test set holds exactly steps observations. A longer test set was scored on its first steps rows without saying so, and a shorter one failed inside the script. Use backtest() to evaluate over a longer period.

  • ForecastingAssistant.forecast() without test_size, given a plan that carries the end_train of an evaluation, raises ValueError instead of evaluating the same dates again: pass test_size, or plan.model_copy(update={'end_train': None}) to forecast the future. (#37)

Backtesting and comparison

  • ForecastingAssistant.create_cv() trains the forecaster once by default (refit=False, the skforecast default) instead of refitting it in every fold, which could take an hour instead of seconds on two years of hourly data. The metrics of backtest() and compare() with the default strategy change; pass refit=True (--refit in the CLI) to keep the previous behavior. ForecasterStats, which skforecast refits in every fold anyway, now trains on a window of fixed size by default, so its metrics change too. (#33)

  • With several series, ForecastingAssistant.compare() without candidates compares ForecasterRecursiveMultiSeries against ForecasterFoundation (Chronos-2), as it does on a single series, instead of the estimators of ForecasterRecursiveMultiSeries. Pass candidates to compare the estimators as before. (#29)

  • ForecastingAssistant.backtest() and backtest_code() given the CVResult of create_cv() without a plan or model arguments run the plan of that CVResult instead of a new default one. A CVResult created for data of another structure raises ValueError. Pass cv=cv_result.cv to backtest a new default plan as before. (#37)

  • ForecastingAssistant.create_cv() raises ValueError when skip_folds names folds that do not exist, which were ignored. (#37)

Foundation models

  • The estimator of a ForecasterFoundation plan is the Hugging Face model ID (default 'autogluon/chronos-2-small') instead of the 'Chronos-2' label, for example estimator='google/timesfm-3.0-pytorch'. An ID that no skforecast adapter serves, 'Chronos-2' included, raises ValueError. (#29, #31)

  • ForecastingAssistant.forecast() with a ForecasterFoundation plan and an interval returns the pred, lower_bound and upper_bound columns of the other forecasters instead of one q_* column per quantile. backtest() keeps the quantile columns. (#29)

Statistical models

  • Auto-ARIMA (ForecasterStats) now gets a seasonal period for more frequencies: the anchored ones pandas infers for quarterly data ('QS-OCT', 'QE-DEC': 4) and the multiplied ones whose cycle is a whole number of steps from 2 to 12 ('2MS': 6, '3h': 8). Its predictions, its metrics and the winner of ForecastingAssistant.compare() can change on such data. For a longer cycle, ask for it with estimator_kwargs={'m': 26} in plan(). (#37, #43)

Data and profiles

  • A date_column that does not hold dates raises ValueError instead of being used as an exogenous variable, and so does a series_id_column that is also the target or the date column in ForecastingAssistant.profile(). (#37)

LLM layer

  • The result keyword of ForecastingAssistant.ask(), deprecated in 0.3.0, is removed and raises TypeError: pass the object to explain as context (ask(prompt, context=result)). (#37)

CLI

  • The commands that take --from-plan exit with code 1 when --steps differs from the steps of the plan, which was ignored: omit it, or change the horizon with refine-plan --steps. --format exits with code 2 for a value the command does not accept, which printed the default output. (#37)

  • Clearer --help texts: --interval takes quantiles, what --base-url means for each provider, the fields a --candidates config accepts, and the help of ask --send-data-to-llm no longer describes it as permission to send raw data, which the CLI never sends. (#28)

Performance

  • Faster on large long-format data, with the same results: ForecastingAssistant.profile() takes about 15 % less on 913,000 rows of 500 series, and the methods that receive data with a saved profile profile the same data once per assistant instead of on every call (backtest_code() from 1.7 s to 0.15 s). (#42)

Dependencies

  • skforecast-ai now requires skforecast>=0.26.0, and lightgbm is a dependency: LGBMRegressor is the recommended estimator from 250 observations, so a clean install failed on the default plan with an ImportError inside the script.

Documentation

Fixed

Data and profiles

  • ForecastingAssistant.profile() reads rows that are not in date order sorted, as the generated script does, and says so in DataProfile.warnings: descending dates gave a script that failed, and shuffled rows gave other lags and predictions without any warning. A timestamp with several rows of different values raises ValueError suggesting the column to pass as series_id_column, instead of silently keeping the first one. (#32, #47)

  • Text dates, in a CSV or in a date_column, are read as the generated script reads them, so for day-first dates such as 13/01/2012 the profile, the lags and forecast() now match the script. Dates written in more than one format, and a date column with empty cells or mixed UTC offsets, raise InvalidInputError naming the column, where the script failed or the dates silently became an exogenous variable. (#32)

  • ForecastingAssistant.profile() infers the frequency despite missing timestamps, which left it unknown and made every forecaster fail with "y has a pandas DatetimeIndex without a frequency". For long-format data it reads the frequency and the missing timestamps of every series, not only of the first one: series of different frequencies raise InvalidInputError, where the generated script resampled them without an error. (#27, #32)

  • A profile, a plan or a result saved with pickle by an earlier version loads with the fields added since, where reading one of them raised AttributeError. (#45)

Plans and overrides

  • ForecastingAssistant.plan() and every method that builds a plan raise InvalidInputError for plans whose generated script always failed: ForecasterDirectMultiVariate on long-format data with several series, a multi-series forecaster on a single series, and an exogenous column named like a lag or a window feature (such as lag_1). (#32)

  • ForecastingAssistant.plan() leaves out the calendar features whose columns already exist among the exogenous variables (for example month or hour), which made forecast() and backtest() fail with "Duplicated feature names detected". The data column is used instead, and the plan explanation names the skipped features.

  • ForecastingAssistant.refine_plan() no longer carries over values that do not apply to the refined plan: switching forecaster family re-derives the estimator, lags and window features (an ML plan refined with forecaster="ForecasterStats" kept Ridge), and a new estimator drops the previous estimator_kwargs. With an LLM, a suggestion of lags or window features that a check of the plan rejects is discarded with a UserWarning. (#27, #37)

  • Plans with missing values drop rows only when the estimator cannot handle them. The missing timestamps restored by asfreq() now count as missing values, so a Ridge plan drops those rows instead of failing with "Input X contains NaN", and RandomForestRegressor is treated as NaN-tolerant, as it is since scikit-learn 1.4. (#27)

  • estimator_kwargs with numpy values (for example taken from np.logspace) made forecast(), backtest() and compare() fail with NameError: name 'np' is not defined, and the plan could not be saved as JSON. They are now stored as the Python values they hold.

  • The script of a ForecasterDirectMultiVariate plan that does not use the exogenous columns fitted them as series too. It now fits only the target series, so its predictions change. (#41)

  • Infinite values of the target, an estimator_kwargs name that the ARIMA model of ForecasterStats does not accept, a foundation model whose backend package is not installed and a context_length that is not a positive integer raise before the generated script runs, where it failed inside it. ForecastingAssistant.profile() of a target that is almost all infinite no longer raises a ValueError that did not say why. (#37, #41)

Forecasting

  • ForecastingAssistant.forecast() checks the future exog and the end of the target before running: missing or misdated rows, final rows without a target value and missing values that the predictions read raise InvalidInputError, where they gave missing, shifted or wrong predictions without an error. What LightGBM and the other tolerant estimators can read gives a warning instead. A plan with use_exog=False no longer requires a future exog. (#27, #32)

  • In evaluation mode (test_size), ForecastingAssistant.forecast() checks the training partition as in prediction mode, where a missing value read by the lags, or a series without data at the split, failed inside the script or scored shifted predictions. For data recorded within the day, a training set that ended at midnight no longer includes that whole day, and with long-format series that start on different dates the split no longer falls after the data. (#37, #41, #43)

  • ForecastingAssistant.forecast() in evaluation mode computes the same eight regression metrics as backtesting; it left out, without saying so, any other than MAE, MSE, MASE and MAPE. compare() raises ValueError before running any candidate for a metric it cannot rank, a metric listed twice or an invalid interval, instead of failing every candidate. (#37)

Backtesting and comparison

  • ForecastingAssistant.backtest() raises InvalidInputError before running where the script failed inside skforecast: a missing target value that a lag or a test fold reads ("Input contains NaN"), a series with fewer values than its lags read, a first training window shorter than the forecaster needs, or a direct forecaster backtested with a gap. create_cv() warns when it builds such a strategy, and each candidate of compare() reports the same message. (#27, #37, #41, #43, #47)

  • ForecastingAssistant.backtest() and backtest_code() failed with "Cannot compare tz-naive and tz-aware timestamps" when the dates of the data have a time zone and initial_train_size is a date without one (the default of create_cv()), and raised TypeError for a TimeSeriesFold whose initial_train_size is a pandas Timestamp. The date is now read in the time zone of the data, kept in the new DataProfile.time_zone.

  • ForecastingAssistant.backtest() and compare() with an interval on several series computed conformal prediction intervals for ForecasterRecursiveMultiSeries and ForecasterDirectMultiVariate, while the plan and forecast() use bootstrapping. They now use bootstrapping too, so the bounds of these backtests change; the point predictions and the metrics do not. (#33)

  • With refit=False or an integer refit, the backtesting script, cv_config and explanation of a ForecasterStats plan said that it was trained once (or every n folds) on a growing window, while skforecast refits ARIMA models in every fold. They now state what runs, and ForecastingAssistant.create_cv() warns with skforecast's IgnoredArgumentWarning when a refit or fixed_train_size passed for it does not run; the metrics do not change. (#33)

  • ForecastingAssistant.create_cv() with a prompt could return a strategy whose first training window was too short for the forecaster of the plan, which failed in backtest(). A suggestion below the minimum the plan needs is now retried, falling back to the deterministic defaults after three attempts. (#45)

Generated scripts

  • A crafted value could inject code into the generated script, which forecast() and backtest() execute: a field of a plan or of a profile loaded from JSON, a foundation model ID or a column name of a CSV. A name that must come from a fixed set raises ValueError when the script is rendered, and any other value is written as a quoted literal. A column name with a quote no longer gives a script that fails with SyntaxError. (#31)

  • ForecastingAssistant.forecast(), backtest() and compare() given a CSV path returned a script that loaded 'data.csv' instead of that file. The script now loads the CSV path or URL passed, also in forecast_code(), backtest_code() and the CLI. (#34)

  • The generated script, run as a file, did not read the data as forecast() does in two cases: data without dates, where it failed, and long-format data with exogenous variables, where the dates of exog_future.csv were read as text and it gave other predictions. It now reads them the same way. (#34)

Errors and warnings

  • Invalid inputs that raised an error of pandas, skforecast or Python (KeyError, AttributeError, "could not convert string to float", a ParserError) now raise InvalidInputError, still a ValueError, naming the argument at fault: a series_id_column that does not exist, a target with text values, a CSV file that cannot be read... See Exceptions and warnings (#37)

  • A generated script that does not compile raises ForecastExecutionError in forecast() and backtest(), like a script that fails while it runs, instead of a bare SyntaxError. ForecastExecutionError has two new attributes, failed_line and failed_statement: the line of generated_code where the error was raised and the statement that holds it. (#31)

  • ForecastingAssistant.forecast() did not show the warnings that skforecast emits while the generated script runs, such as MissingValuesWarning when the estimator is trained with missing values. They are now shown once it ends, and your warning filters still decide which ones. (#37)

LLM layer

  • Without the API key of the provider, ForecastingAssistant.ask(), refine_plan(prompt=...) and create_cv(prompt=...) raised a UserError of pydantic-ai. ask() now raises LLMCallError, and the other two return the deterministic result with a UserWarning, as when the call fails. (#46)

  • ForecastingAssistant.ask() about the result of backtest_code() was told that the script trains on all the data and forecasts the future, without metrics. It now receives it as a backtest, with its cross-validation strategy and number of folds, like the result of backtest(). (#34)

  • Two explanations were wrong, and ask() repeated them. The explanation of ForecastingAssistant.compare() said that multi-series candidates were ranked by the metric "pooled across series", when it is averaged across series, and the plan explanation said "NaN rows kept (NaN-tolerant estimator)" even when no value was missing. (#29)

  • A profile or a plan loaded from JSON, or a column name of the data, could add or close sections of what ForecastingAssistant.ask() sends to the LLM through a line break or a tag. Those texts are now escaped. (#37)

CLI

  • Errors and warnings go to standard error instead of standard output, where they broke the JSON of --format json for a program reading it. With --format json an error is a JSON object {"error": {"code", "message", "field", "hint"}}, and an error that has a remedy prints it as Tip: ... after the message. See Using the CLI (#37)

  • skforecast-ai config set no longer accepts output.format. No command read it, so the setting had no effect. config show lists it, and any other unknown key found in the file, as ignored. (#28)

0.3.1 Sep 11, 2026

Added

  • Feature ForecastingAssistant.check_llm() and the check-llm CLI command report how the LLM configuration resolves before any workflow runs: provider and model, where the credentials come from and whether the environment variable is set, what base_url means for the provider, whether the extras are installed and, for Ollama, whether the server answers. With test_call=True (--test-call) a one-line prompt is sent to the model. The result is an LLMCheckResult with an ok field; the CLI exits with code 1 when a check fails. Credential values are never shown.

  • Enhancement New user guide Configuring the LLM: model strings, credentials per provider, the meaning of base_url, local models with Ollama, OpenAI-compatible endpoints, what is sent to the LLM, and troubleshooting. The quick start, the installation page, the CLI reference and the notebooks link to it, and the examples use the same set of model names throughout.

  • Docs New API page for the exceptions and warnings the package exports, a user guide on the skills ask() sends to the LLM (which exist, how they are selected, how to pick them with skills= and --skills, and how they follow the Agent Skills standard), and an "Under the hood" section in the first forecast guide showing profile(), plan(), forecast_code() and forecast() chained step by step.

Fixed

  • Fix base_url is honoured for openai: and for any prefix that is not built in when no api_key is given: the assistant builds an OpenAI-compatible client at that endpoint (local servers accept the placeholder key pydantic-ai sends when OPENAI_API_KEY is unset). Previously the endpoint was silently dropped and the bare provider string went to pydantic-ai.

  • Fix The docstring of send_data_to_llm described the flag as permission to send raw input data. Input data is never sent; the flag acknowledges that the predictions and metrics of a result passed to ask() are sent, and silences DataSentToLLMWarning. The docstring now says so.

0.3.0 Sep 11, 2026

Added

  • Feature ForecastingAssistant.ask() can explain a generated script (CodeGenerationResult, from forecast_code() and backtest_code()) and a cross-validation strategy (CVResult) before anything is executed. Neither carries data values, so they never trigger DataSentToLLMWarning.

  • Feature Every result (ForecastResult, BacktestResult, ComparisonResult, CodeGenerationResult, CVResult) serializes to JSON with model_dump(mode="json") and model_dump_json(); DataFrames become lists of row records. The JSON output of the CLI commands is exactly this dump.

  • Enhancement ForecastingAssistant.ask() sends a richer context to the LLM: date range and target statistics, missing values, significant lags, the suggested features, a summary of the generated script, and per-series statistics of the predictions for multi-series results. Answers are better grounded and questions about one series can be answered.

Changed

  • API Change ForecastingAssistant.create_cv() returns a CVResult instead of a (TimeSeriesFold, str) tuple: the splitter is result.cv, the explanation result.explanation, and the result also carries cv_config (with n_folds), a code snippet and the profile and plan it came from. backtest(), backtest_code() and compare() accept it directly as cv. Unpacking it as before raises a TypeError that points to the new attributes.

  • API Change ForecastingAssistant.ask() takes the object to explain as a single context argument (a ForecastingProfile, optionally with plan=, or any result). It no longer profiles or plans on its own, so the data, target, date_column, series_id_column, profile and steps arguments are removed: call profile() or plan() first and pass the object. result= keeps working as a deprecated alias until 0.4.0. The ask CLI command gains --from-profile.

  • API Change ForecastingAssistant.ask() raises LLMCallError when the call to the LLM fails, with the provider exception available as original_error. Previously it returned an answer starting with [LLM unavailable], which a pipeline could mistake for a real one. refine_plan() and create_cv() keep falling back to their deterministic output with a warning.

  • API Change Arguments already recorded in a profile or plan become optional: with profile, target, date_column and series_id_column default to the profile's values in forecast(), forecast_code(), backtest(), backtest_code() and compare(); with plan, steps defaults to plan.steps in forecast() and forecast_code(). A value that conflicts with the profile or plan raises ValueError instead of being silently ignored. The same rule applies to forecaster, estimator, estimator_kwargs, lags and window_features passed alongside a plan, which previously only emitted IgnoredArgumentWarning. interval is the exception: as a prediction-time option, it replaces the interval of a pre-built plan (forecast(plan=best_plan, interval=[0.1, 0.9]) now produces the bounds), and None keeps the plan's intervals.

  • API Change ForecastingAssistant.compare() no longer ranks multi-series forecasters (scored on the average across all series) against multivariate forecasters (scored on the single series they predict): mixing them in candidates raises ValueError. For multi-series data the automatic candidates compare the estimators of ForecasterRecursiveMultiSeries instead (rows named ForecasterRecursiveMultiSeries+<estimator>).

  • Enhancement The overrides of refine_plan() and the candidate configurations of compare() are typed (RefinePlanOverrides and CandidateConfig in skforecast_ai.schemas), so editors autocomplete the accepted keys. Behaviour is unchanged.

  • Enhancement The LLM suggestions of ForecastingAssistant.refine_plan() (lags, window features) and ForecastingAssistant.create_cv() (fold parameters) are validated by the Pydantic output schema and by the same checks the explicit arguments go through. An invalid suggestion is sent back to the model with the concrete error and, if it persists, the deterministic result is used with a UserWarning; previously a malformed suggestion could crash refine_plan() or surface a pandas error from create_cv(). The agents' instructions state the constraints (positive unique lags, ISO dates within the dataset range) and the CV agent receives the first and last date of the series.

  • Enhancement CLI: --initial-train-size accepts an ISO date marking the end of the initial training set, and --lags auto / --window-features auto re-run the deterministic selection when refining a saved plan (refine-plan, backtest-code --from-plan, forecast-code --from-plan).

Fixed

  • Fix ForecastingAssistant.plan(), refine_plan(), compare() and the CLI --lags option reject invalid lag specifications with a ValueError (0, an empty list, non-positive or non-integer values, booleans, duplicates) instead of passing them to skforecast, where an empty list silently trained without lag features and duplicates produced repeated features. window_features entries that repeat the same statistic with the same window size are rejected for the same reason.

  • Fix ForecastingAssistant.create_cv() accepts a pandas Timestamp as initial_train_size (documented but previously failing) and raises a clear ValueError naming initial_train_size when a date string cannot be parsed or when the dataset has no datetime index with a known frequency. Previously the date was located on a fabricated daily index or a raw pandas error surfaced. The same check protects backtest() and compare() when given a date-based TimeSeriesFold.

  • Fix CLI: --no-refit, --fixed-train-size and --gap 0 had no effect in backtest, backtest-code and compare because they matched the declared default and were dropped. The six cross-validation options are now forwarded to create_cv() only when passed, and the assistant decides the rest.

  • Fix The script produced by ForecastingAssistant.backtest_code() loads the data from the CSV path it was given, as forecast_code() already did. Previously it always read data.csv. backtest_code() also accepts data=None when profile and plan are given, so the CLI command backtest-code --from-plan renders the script without DATA, as forecast-code does.

  • Fix CLI: forecast-code and backtest-code apply the modeling flags given alongside --from-plan (--estimator, --interval, --lags, ...) on top of the saved plan, as forecast and backtest already did, instead of ignoring them. The confirmation messages of --output-code and --output-predictions go to stderr, so --format json output stays parseable when both are combined.

  • Fix BacktestResult.explanation for a multi-series backtest reported a value matching no row of the metrics table (a mean over the per-series and aggregate rows). It now reports the average row and says so.

  • Fix ForecastingAssistant.refine_plan() keeps the llm_refined_fields marks of the fields it does not override, so LLM-suggested lags stay flagged after refining another field.

0.2.0 Aug 3, 2026

Added

  • Feature ForecastingAssistant.compare() backtests several forecaster/estimator configurations with the same cross-validation strategy and returns a metric-ranked ComparisonResult leaderboard. Each successful candidate is available in candidates, a name-keyed mapping of BacktestResult ordered best to worst, and the winning configuration is exposed as best_name / best_candidate for direct reuse. A matching compare CLI command reports the leaderboard and supports --candidates, --metric, --from-profile, and --output-code.

Changed

  • API Change ForecastingAssistant.ask() now accepts a single result parameter in place of the previous forecast_result and backtest_result parameters. Update calls from ask(forecast_result=...) / ask(backtest_result=...) to ask(result=...). Any ExplainableResult is accepted, including ForecastResult, BacktestResult, and ComparisonResult.

Fixed

  • API Change ForecastingAssistant.ask() now treats a supplied result as the single source of truth. Previously an explicit profile or plan took precedence over the result's own while the context and code still came from the result, so the returned artifacts could describe different states. data, target, date_column, series_id_column, profile, plan, and steps are now ignored with an IgnoredArgumentWarning when result is provided.

0.1.0 Jul 13, 2026

First public release. skforecast-ai wraps the skforecast engine in a deterministic, rule-based assistant that profiles the data, selects a model, evaluates it, and returns the forecast together with the exact, runnable script that produced it. An optional LLM layer explains the decisions without ever changing them.

Maturity

The underlying forecasting engine (skforecast) is mature and production-grade. The skforecast-ai assistant layer is at 0.1.0, so its public API may still change.

Added

  • ForecastingAssistant: the main entry point, covering the full workflow: profile(), plan(), refine_plan(), forecast() / forecast_code(), create_cv(), backtest() / backtest_code(), and ask().
  • Typer-based CLI mirroring the programmatic API, with persistent configuration.