Repository navigation
Conversation
This was referenced Oct 5, 2026
miladh
force-pushed
the
ai-ts-forecasting/08-data-impute
branch
from
October 30, 2026 07:49
cf6ac62 to
7dfbfb5
Compare
Reconstruct gaps and chosen datapoints of CDF time series by instance_id. Retrieval and alignment work as in client.ai.time_series.forecast_with_retrieval; the request goes to client.ai.time_series.impute. Callers must say what to reconstruct, so nothing is imputed by accident: - fill_gaps=True reconstructs every grid point without a datapoint (with aggregates, every empty bucket). - mask=[...] hides timestamps or inclusive (start, end) ranges from the model and reconstructs them even where values exist, e.g. a known-bad period. A mask that covers no grid point raises ValueError. A single instance_id returns a TimeSeriesImpute; several return a TimeSeriesImputeList. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
miladh
force-pushed
the
ai-ts-forecasting/08-data-impute
branch
from
November 2, 2026 11:15
7dfbfb5 to
ea2d5a6
Compare
miladh
force-pushed
the
ai-ts-forecasting/07-data-forecast
branch
from
November 2, 2026 11:15
1cb93d7 to
e26972f
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 #2879
Description
Adds
client.ai.time_series.impute_with_retrieval(...), which reconstructs gaps and chosen datapoints of CDF time series by instance id. Retrieval and alignment work as inclient.ai.time_series.forecast_with_retrieval.Callers must say what to reconstruct, so nothing is imputed by accident:
fill_gaps=Truereconstructs every grid point without a datapoint. With aggregates, that's every empty bucket.mask=[...]takes timestamps, or inclusive(start, end)ranges, to reconstruct even where values exist, for example a known-bad period. A mask that covers no grid point raisesValueError.Passing neither raises
ValueErrorbefore any data is retrieved. One instance id returns aTimeSeriesImpute; several return aTimeSeriesImputeList.Only touches
AITimeSeriesAPIand its generated sync file. No existing datapoints files are changed.Usage
Checklist:
TestImputeWithRetrievalintest_ai_time_series_retrieval.py.ai.rstsection.🤖 Generated with Claude Code