API reference¶
The top-level package keeps the main workflow small. Metrics, checks, preprocessing
and other helpers are public through their modules; for example,
from timegym.metrics import mase and
from timegym.checks import within.
“Public” means supported in this release; consult the changelog when upgrading.
Deprecated names still work, warn with what to use instead and will be removed
in a later release; the changelog lists them and they are not listed here.
Schema constants describe stored formats independently of the package version.
Underscore-prefixed names and modules, including _internal and
_process_common, are private and have no compatibility guarantee.
Public surface¶
| Name | Import path | Stability | Page |
|---|---|---|---|
ForecastTask, Forecast, Reference, SimulationReference, Case, Scenario, cases_from_series |
timegym |
Public | Tasks and forecasts; Scenarios and references; Composed and joint processes |
Pipeline, LastValueForecaster, SeasonalLastValueForecaster, MeanForecaster, SeasonalMeanForecaster, DriftForecaster, GaussianAR1Forecaster |
timegym |
Public | Pipeline and reports; Models and reductions |
ForecastRun, EvaluatedCase, TestReport, DiagnosticResult, CaseResult |
timegym |
Public | Pipeline and reports |
compare_reports |
timegym |
Public | Metrics and diagnostics |
Scorecard, PATTERNS, Pattern, GridCell, scenario_grid |
timegym |
Public | Scorecards and the scenario grid |
verdict, VERDICTS, ScorecardComparison |
timegym.scorecard |
Public | Scorecards and the scenario grid |
noise_levels, NOISE_LOW, NOISE_HIGH |
timegym.grid |
Public | Scorecards and the scenario grid |
DiagnosticStatus, DiagnosticCategory, __version__ |
timegym |
Public | Pipeline and reports; Diagnostics catalogue |
DEFAULT_LEVELS |
timegym.contracts |
Public | Scenarios and references |
mse, mae, rmse, mase, rmsse, mean_reference_mse, pinball, interval_score, weighted_interval_score, crps, energy_score, variogram_score, brier, log_loss, UndefinedMetricError |
timegym.metrics |
Public | Metrics and diagnostics |
evaluate_forecast, ReportComparison, calibration, Calibration, covariance_dependence_check, rank_alarm, RankAlarm |
timegym.diagnostics |
Public | Metrics and diagnostics |
within, dependence |
timegym.checks |
Public | Metrics and diagnostics |
check_shift_equivariance |
timegym.checks |
Public; opt-in model property | Metrics and diagnostics |
SklearnForecaster |
timegym.models |
Public; sklearn loaded when needed | Models and reductions |
REDUCTIONS |
timegym.models |
Public | Models and reductions |
MUTATIONS, mutate_forecast |
timegym.mutations |
Public controlled fixtures | Fault fixtures |
plot_forecasts, plot_errors |
timegym.plotting |
Public; Matplotlib imported when drawing | Pipeline and reports |
plot_calibration |
timegym.plotting |
Public; Matplotlib imported when drawing | Metrics and diagnostics |
wilson_interval, paired_t_interval |
timegym.statistics |
Public; independent cases | Metrics and diagnostics |
default_scenarios |
timegym.scenarios |
Public | Scenarios and references |
differencing |
timegym.target |
Public | Data preparation |
LogTransform, BoxCoxTransform, DifferenceTransform, ComposedTransform |
timegym.target |
Public; replay rebuilds bundled transforms only | Data preparation |
CORE_KINDS, scenario_label, MANIFEST_SCHEMA_VERSION |
timegym.scenarios |
Public; manifest schema versioned separately | Scenarios and references; Composed and joint processes; Pipeline and reports |
PROCESS_KINDS, resolve_process |
timegym.processes |
Public low-level generators | Scenarios and references; Composed and joint processes |
PIPELINE_CONFIG_SCHEMA_VERSION |
timegym.provenance |
Public; config schema versioned separately | Pipeline and reports |
REPORT_SCHEMA_VERSION |
timegym.reporting |
Public; report schema versioned separately | Pipeline and reports |