Repository navigation
Conversation
This was referenced Oct 5, 2026
miladh
force-pushed
the
ai-ts-forecasting/06-cdf-data-classes
branch
from
October 30, 2026 07:49
7f6a10c to
1722245
Compare
miladh
force-pushed
the
ai-ts-forecasting/07-data-forecast
branch
from
October 30, 2026 07:49
e591508 to
1cb93d7
Compare
Forecast CDF time series by instance_id. History in [start, end) is read with client.time_series.data.retrieve, aligned with build_inputs, and sent to client.ai.time_series.forecast. - With granularity + aggregate, history is aligned using CDF aggregates and empty buckets are sent as missing. Without them, raw datapoints must already be evenly spaced. - Nothing is resampled or truncated: alignment problems raise ValueError with advice in terms of start/end/granularity/aggregate. - A single instance_id returns a TimeSeriesForecast; several return a TimeSeriesForecastList. - cohort= forecasts all requested series jointly on one common grid. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
miladh
force-pushed
the
ai-ts-forecasting/07-data-forecast
branch
from
November 2, 2026 11:15
1cb93d7 to
e26972f
Compare
miladh
force-pushed
the
ai-ts-forecasting/06-cdf-data-classes
branch
from
November 2, 2026 11:15
1722245 to
85e6f4b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #2878
Description
Adds
client.ai.time_series.forecast_with_retrieval(...), which forecasts CDF time series by instance id. It reads history in[start, end)with the existingclient.time_series.data.retrieve, aligns it withbuild_inputs, and callsclient.ai.time_series.forecast.granularityandaggregate, history is aligned with CDF aggregates, and empty buckets are sent as missing.granularity=andaggregate=…".retrieve. One instance id returns aTimeSeriesForecast; several return aTimeSeriesForecastList.cohort=forecasts all requested series jointly, on one common grid.The method lives on the existing
AITimeSeriesAPI, next to the low-levelforecast. No existing datapoints files are changed.Also included: the regenerated sync API.
Usage
Checklist:
test_api/test_ai_time_series_retrieval.py, which fakes retrieval and the low-level API; plus the docstring test.ai.rstsection.🤖 Generated with Claude Code