404
+Page not found
+diff --git a/.gitattributes b/.gitattributes index a6344aac8c09253b3b630fb776ae94478aa0275b..ee789a46e76e197cf78ebfebab652107613d7f0d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,46 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text +assets/brand/detime-logo-color.png filter=lfs diff=lfs merge=lfs -text +assets/brand/detime-logo-new.png filter=lfs diff=lfs merge=lfs -text +assets/brand/detime-logo-white.png filter=lfs diff=lfs merge=lfs -text +assets/generated/home/method_grid.png filter=lfs diff=lfs merge=lfs -text +assets/generated/home/mssa_multivariate.png filter=lfs diff=lfs merge=lfs -text +assets/generated/home/ssa_components.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/columns/hot-trend-lab/01_arxiv_category_pulse/cell-016-output-01.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/columns/hot-trend-lab/02_arxiv_agent_research_pulse/cell-016-output-01.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/columns/hot-trend-lab/03_huggingface_open_model_pulse/cell-016-output-01.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/columns/hot-trend-lab/05_wikipedia_attention_hype_decay/cell-012-output-01.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/columns/hot-trend-lab/07_ai_infrastructure_market_pulse/cell-010-output-01.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/ceemdan.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/emd.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/ma_baseline.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/memd.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/mssa.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/mstl.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/mvmd.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/robust_stl.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/ssa.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/std.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/stdr.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/stl.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/vmd.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/method-gallery/wavelet.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/tutorials/quant-trading/01_detime_trend_following_strategy_lab/cell-007-output-01.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/tutorials/quant-trading/02_detime_oscillation_reversion_strategy_lab/cell-008-output-01.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/tutorials/quant-trading/07_native_ssa_high_return_low_drawdown_tutorial/cell-013-output-01.png filter=lfs diff=lfs merge=lfs -text +assets/generated/notebooks/tutorials/quant-trading/07_native_ssa_high_return_low_drawdown_tutorial/cell-013-output-03.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/cli-and-profiling/single-file/example_series_error.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/cli-and-profiling/single-file/example_series_plot.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/visual-comparison/method_grid.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/visual-comparison/season_overlay.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/visual-comparison/trend_overlay.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/visual-multivariate/channel0_trend_overlay.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/visual-multivariate/mssa_multivariate.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/visual-multivariate/std_channelwise_multivariate.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/visual-univariate/ssa_components.png filter=lfs diff=lfs merge=lfs -text +assets/generated/tutorials/visual-univariate/ssa_residual_error.png filter=lfs diff=lfs merge=lfs -text +webfonts/fa-brands-400.ttf filter=lfs diff=lfs merge=lfs -text +webfonts/fa-brands-400.woff2 filter=lfs diff=lfs merge=lfs -text +webfonts/fa-solid-900.ttf filter=lfs diff=lfs merge=lfs -text +webfonts/fa-solid-900.woff2 filter=lfs diff=lfs merge=lfs -text diff --git a/404.html b/404.html new file mode 100644 index 0000000000000000000000000000000000000000..d720d4567b5de9eb25255c342f623831d86d5442 --- /dev/null +++ b/404.html @@ -0,0 +1,484 @@ + + +
+ + + + + + + +Page not found
+from detime import DecompositionConfig, DecompResult, MethodRegistry, decompose
+
+The canonical package import is detime. The top-level tsdecomp import and
+CLI remain compatibility aliases only through 0.1.x.
DecompositionConfigDecompositionConfig is the validated runtime contract for Python calls and
+mirrors the CLI surface.
For the generated parameter-level reference, see +Config Reference. For method-level input/backend/output +comparison, see Method Matrix.
+method: str
+ Required method name such as SSA, STD, STDR, MSSA, MVMD, or
+ MEMD.params: dict[str, Any] = {}
+ Method-specific parameters. Examples include period for STD, window
+ and rank for SSA, and primary_period for automatic grouping.return_components: list[str] | None = None
+ Reserved compatibility field. Current decomposition entrypoints return the
+ full DecompResult; methods may ignore this field.backend: "auto" | "native" | "python" | "gpu" = "auto"
+ Backend preference. auto uses a native kernel when one exists, python
+ forces the Python implementation, native requires the native path, and
+ gpu raises unless a method explicitly supports it.speed_mode: "exact" | "fast" = "exact"
+ Runtime accuracy policy. For native SSA, exact follows the deterministic
+ SVD-backed path and fast uses the approximate iterative kernel.profile: bool = False
+ When True, attach runtime metadata such as runtime_ms to result metadata
+ or profile reports.device: str | None = "cpu"
+ Reserved execution device selector. Current retained methods are CPU
+ workflows unless a wrapper says otherwise.n_jobs: int = 1
+ Requested parallelism hint for methods or wrappers that support it.seed: int | None = 42
+ Random seed used by fast or approximate backends where relevant.channel_names: list[str] | None = None
+ Optional channel labels for multivariate inputs. These are copied into result
+ metadata and saved artifacts.Validation errors come from Pydantic. Invalid backend names, negative
+n_jobs, or malformed parameter payloads fail before decomposition starts.
DecompResultDecompResult is the normalized output object returned by decompose(...).
trend: np.ndarray
+ Trend component. Shape matches the input layout.season: np.ndarray
+ Seasonal or oscillatory component. Shape matches the input layout.residual: np.ndarray
+ Remaining unexplained component. Shape matches the input layout.components: dict[str, np.ndarray]
+ Method-specific extra outputs such as modes, imfs, dispersion, or
+ seasonal_shape.meta: dict[str, Any]
+ Runtime and provenance metadata. Common keys include method,
+ backend_requested, backend_used, speed_mode, result_layout,
+ n_channels, channel_names, and runtime_ms when profiling is enabled.The core reconstruction contract is:
+result.trend + result.season + result.residual
+
+which should match the original input up to the documented method tolerance.
+decompose(series, config)decompose(series, config) is the public execution entrypoint.
(time, channels) for multivariate or channelwise
+ methods.DecompResult.ValueError for unsupported shapes or missing required parameters.RuntimeError when backend="native" is forced but no native kernel is
+ available.ImportError for optional-backend methods such as MVMD and MEMD
+ without de-time[multivar].Backend resolution is method-specific:
+SSA, STD, STDR, MA_BASELINE, MSSA, VMD, and GABOR_CLUSTER can use native kernels.MVMD and MEMD are optional-backend wrappers and require the multivar
+ extra.MethodRegistryMethodRegistry is the machine-readable source of truth for the installed
+method catalog.
MethodRegistry.list_methods()
+ Return registered public method names.MethodRegistry.list_catalog()
+ Return the full catalog used by docs generation, recommendation, and MCP.MethodRegistry.get_metadata(method_name)
+ Return one catalog entry as a dictionary.MethodRegistry.get(method_name)
+ Return the callable decomposition implementation.MethodRegistry.register(method_name)
+ Decorator used by method modules to register implementations.Every catalog payload now includes:
+packageversioncontract_versionmethodsEvery method entry exposes at least:
+familyinput_modematurityimplementationdependency_tiermultivariate_supportnative_backedmin_lengthsummaryrecommended_fortypical_failure_modesassumptionsnot_recommended_foroptional_dependenciesreferencespackage_linksparameter_docsoutput_componentsexample_configDeTime publishes three result views for bounded-context workflows:
+full
+ Full arrays plus metadata and diagnostics.summary
+ Array shapes and summary statistics plus metadata and diagnostics.meta
+ Metadata and diagnostics only.Machine-facing entrypoints:
+detime schema --name config|result|meta|method-registrydetime recommend --length ... --channels ...python -m detime.mcp.serverThe method-registry schema and payload are versioned within the current
+machine-contract series 0.1. Consumers should prefer contract_version over
+guessing schema compatibility from the package version alone.
Supported top-level commands:
+detime rundetime batchdetime profiledetime versiondetime schemadetime recommendCLI profile reports support both json and text output, and detime profile
+--format text now affects stdout as well as --output files.
The canonical implementation lives under src/detime.
core.py: public data models.registry.py: method registration, metadata catalog, and decompose() dispatch.io.py: loading series and saving decomposition outputs.serialization.py: full, summary, and meta result views.recommend.py: method recommendation logic.schemas.py: packaged JSON schema generation and loading.profile.py: runtime profiling helpers.viz.py: plotting helpers.methods/: flagship methods and retained wrappers.mcp/server.py: minimal MCP server for tool-based access._native.py: native extension discovery and capability checks.src/tsdecomp is now a thin compatibility package. It re-exports the package-
+level DeTime surface and emits deprecation warnings for imports and CLI usage.
+Only the top-level import path and CLI alias remain packaged; transition-era
+submodules are intentionally not shipped in install artifacts. The compatibility
+window is the 0.1.x series, with earliest removal planned for 0.2.0.
Machine-oriented workflows use:
+src/detime/schema_assets,MethodRegistry.list_catalog(),detime schema and detime recommend,python -m detime.mcp.server,summary and meta modes.Native kernels are built and loaded under the DeTime naming path first. The +main package exposes native support only for the retained flagship methods. +Benchmark-derived native code is no longer part of the main package boundary.
Passed 5 / 5 deterministic MCP workflow checks.
| case | +status | +details | +
|---|---|---|
| list_methods | +pass | +stable catalog keys present | +
| recommend_method | +pass | +MSSA leads multivariate accuracy routing | +
| get_schema | +pass | +method-registry schema resolved | +
| summary_first_decompose | +pass | +summary payload returned without full arrays | +
| bounded_context_report | +pass | +meta payload supports bounded-context reporting | +
Generated for DeTime 0.1.1 on 2026-04-14T22:07:10.282587+00:00.
| package | +primary_scope | +unified_config_object | +unified_result_object | +machine_readable_catalog | +batch_cli | +profiling_path | +multivariate_support | +maturity_labeling | +compact_output | +mcp_tool_surface | +
|---|---|---|---|---|---|---|---|---|---|---|
| DeTime | +workflow-oriented decomposition layer | +yes | +yes | +yes | +yes | +yes | +yes | +explicit | +yes | +yes | +
| statsmodels | +classical decomposition and modeling | +no | +partial | +no | +no | +no | +limited | +implicit | +no | +no | +
| PyEMD | +EMD-family toolkit | +no | +no | +no | +no | +no | +family-specific | +family-specific | +no | +no | +
| PyWavelets | +wavelet toolkit | +no | +no | +no | +no | +no | +transform-specific | +family-specific | +no | +no | +
| PySDKit | +signal decomposition toolkit | +partial | +partial | +no | +limited | +no | +yes | +less explicit | +no | +no | +
| SSALib | +SSA specialist toolkit | +SSA-specific | +SSA-specific | +no | +no | +no | +no | +focused | +no | +no | +
| sktime | +broad time-series ecosystem | +no | +no | +no | +no | +no | +partial | +ecosystem-level | +no | +no | +
| package | +public_release_story | +pypi_path | +github_release | +wheels | +ci_platforms | +docs_website | +tutorials | +api_docs | +coverage_disclosure | +reproducibility_script | +
|---|---|---|---|---|---|---|---|---|---|---|
| DeTime | +0.1.1 target from main | +tag-driven publish workflow | +de-time-v0.1.1 | +yes | +ubuntu, macOS, windows | +GitHub Pages | +yes | +yes | +dual report | +yes | +
| statsmodels | +yes | +yes | +yes | +yes | +yes | +yes | +yes | +yes | +project-dependent | +project-dependent | +
| PyEMD | +yes | +yes | +yes | +partial | +project-dependent | +partial | +partial | +partial | +project-dependent | +no | +
| PyWavelets | +yes | +yes | +yes | +yes | +yes | +yes | +yes | +yes | +project-dependent | +no | +
| PySDKit | +yes | +yes | +yes | +partial | +project-dependent | +yes | +partial | +partial | +project-dependent | +no | +
| SSALib | +yes | +yes | +yes | +partial | +project-dependent | +yes | +partial | +partial | +project-dependent | +no | +
| sktime | +yes | +yes | +yes | +yes | +yes | +yes | +yes | +yes | +project-dependent | +project-dependent | +
| family | +specialist | +specialist_deeper_strength | +de_time_position | +
|---|---|---|---|
| classical decomposition | +statsmodels | +deeper classical decomposition and statistical modeling | +wraps STL and MSTL under one config/result/CLI layer | +
| SSA | +SSALib | +deeper SSA-only environment with SSA-specific tooling | +uses SSA as one flagship method inside a cross-family workflow layer | +
| EMD family | +PyEMD | +deeper EMD-family tooling | +exposes EMD and CEEMDAN through the same contract used for other families | +
| wavelet workflows | +PyWavelets | +deeper wavelet transforms and transform-specific APIs | +uses wavelets as one workflow option rather than a wavelet-first toolkit | +
| unified toolkit layer | +PySDKit | +broader signal-decomposition toolkit with optional multivariate backends | +focuses on time-series decomposition workflows, machine-facing contracts, and compact outputs | +
| package | +json_schema_assets | +compact_result_modes | +recommend_interface | +machine_readable_catalog | +mcp_surface | +artifact_contract | +token_benchmark | +tool_evals | +
|---|---|---|---|---|---|---|---|---|
| DeTime | +yes | +full/summary/meta | +yes | +yes | +local-first | +yes | +yes | +yes | +
| statsmodels | +no | +no | +no | +no | +no | +no | +no | +no | +
| PyEMD | +no | +no | +no | +no | +no | +no | +no | +no | +
| PyWavelets | +no | +no | +no | +no | +no | +no | +no | +no | +
| PySDKit | +no | +no | +no | +no | +no | +no | +no | +no | +
| SSALib | +no | +no | +no | +no | +no | +no | +no | +no | +
| sktime | +no | +no | +no | +no | +no | +no | +no | +no | +
docs\assets\generated\evidence\performance_snapshot.csv| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "SSA | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "STD | \n", + "ran | \n", + "\n", + " | channelwise | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "STDR | \n", + "ran | \n", + "\n", + " | channelwise | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "MSSA | \n", + "ran | \n", + "\n", + " | multivariate | \n", + "(96, 3) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "STL | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "MSTL | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "ROBUST_STL | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "EMD | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "CEEMDAN | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "VMD | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.034219 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "WAVELET | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "MA_BASELINE | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "MVMD | \n", + "ran | \n", + "\n", + " | multivariate | \n", + "(96, 3) | \n", + "0.083237 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "MEMD | \n", + "ran | \n", + "\n", + " | multivariate | \n", + "(96, 3) | \n", + "0.0 | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "GABOR_CLUSTER | \n", + "skipped | \n", + "requires a trained GaborClusterModel or model_... | \n", + "univariate | \n", + "\n", + " | NaN | \n", + "
| \n", + " | method | \n", + "status | \n", + "reason | \n", + "input_mode | \n", + "output_shape | \n", + "residual_rmse | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "SSA | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 1 | \n", + "STD | \n", + "ran | \n", + "\n", + " | channelwise | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 2 | \n", + "STDR | \n", + "ran | \n", + "\n", + " | channelwise | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 3 | \n", + "MSSA | \n", + "ran | \n", + "\n", + " | multivariate | \n", + "(96, 3) | \n", + "0.000000 | \n", + "
| 4 | \n", + "STL | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 5 | \n", + "MSTL | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 6 | \n", + "ROBUST_STL | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 7 | \n", + "EMD | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 8 | \n", + "CEEMDAN | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 9 | \n", + "VMD | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.034219 | \n", + "
| 10 | \n", + "WAVELET | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 11 | \n", + "MA_BASELINE | \n", + "ran | \n", + "\n", + " | univariate | \n", + "(96,) | \n", + "0.000000 | \n", + "
| 12 | \n", + "MVMD | \n", + "ran | \n", + "\n", + " | multivariate | \n", + "(96, 3) | \n", + "0.083237 | \n", + "
| 13 | \n", + "MEMD | \n", + "ran | \n", + "\n", + " | multivariate | \n", + "(96, 3) | \n", + "0.000000 | \n", + "
| 14 | \n", + "GABOR_CLUSTER | \n", + "skipped | \n", + "requires a trained GaborClusterModel or model_... | \n", + "univariate | \n", + "\n", + " | NaN | \n", + "
| Situation | +Recommended first method | +Why | +
|---|---|---|
| One interpretable seasonal signal | +STD or STDR |
+simple configuration and stable outputs | +
| One signal where component grouping matters | +SSA |
+flexible component grouping with native support | +
| Multiple aligned channels with shared structure | +MSSA |
+joint decomposition across channels | +
| You already know the main period | +STL |
+reliable upstream baseline | +
detime recommend --length 192 --channels 3 --prefer accuracy
+
+EMD, CEEMDAN, or
+ VMD,MVMD or MEMD.tsdecomp imports in new code,Use Method References when you need the literature +citations or official upstream package links behind any retained method.
Use CITATION.cff for machine-readable citation metadata.
The current branch targets 0.1.1. Tagged standalone releases use the
+de-time-v* convention and publish the de-time distribution.
CHANGELOG.md tracks package-level changes.tsdecomp remains available only as a deprecated compatibility alias.systems-mechanobiology/de-time-bench.This appendix stores the generated files behind +Compare Alternatives. It is kept out of the primary +navigation because most users only need the summarized matrix.
+python benchmarks/software_comparison/generate_comparison_evidence.py
+python examples/workflow_comparisons/compare_specialist_glue_vs_detime.py
+
+The comparison focuses on software workflow properties: shared config/result +objects, CLI and artifact behavior, method metadata, schemas, and automation +support.
DeTime is useful when the project needs one decomposition workflow across +Python, CLI, saved artifacts, and machine-readable metadata. Specialist +packages remain the better choice when you only need their deepest family- +specific API.
+DecompositionConfig, one DecompResult, one CLI artifact contract
+ | Axis | +DeTime | +statsmodels |
+PyEMD |
+PyWavelets |
+PySDKit |
+SSALib |
+sktime |
+
|---|---|---|---|---|---|---|---|
| Best fit | +cross-method workflow | +classical decomposition/statistics | +EMD-family work | +wavelet transforms | +broad signal decomposition | +SSA-focused work | +broader time-series ecosystem | +
| Shared config/result contract | +yes | +partial | +no | +no | +partial | +SSA-specific | +no | +
| CLI, batch, profiling | +yes | +no | +no | +no | +limited | +no | +partial | +
| Machine-readable catalog/schemas | +yes | +no | +no | +no | +no | +no | +no | +
| Multivariate under one surface | +yes | +limited | +family-specific | +transform-specific | +yes | +no | +partial | +
| Where it is deeper | +workflow reproducibility | +statistical modeling | +EMD variants | +wavelet tooling | +decomposition breadth | +SSA workflows | +ecosystem breadth | +
| Package | +Use it directly when | +Use DeTime when | +
|---|---|---|
statsmodels |
+you need the full statistical modeling stack | +you want STL / MSTL output in the same contract as other methods |
+
PyEMD |
+you need deeper EMD-family controls | +you want EMD / CEEMDAN beside SSA, STD, VMD, and CLI artifacts |
+
PyWavelets |
+you need transform-specific wavelet APIs | +you want wavelet decomposition as one option in a broader workflow | +
PySDKit |
+you need its broad signal-decomposition catalog | +you want selected optional multivariate backends behind DeTime metadata and I/O | +
SSALib |
+you only need SSA-family tooling | +you want SSA as one flagship method in a cross-family package |
+
sktime |
+you need a large time-series ML ecosystem | +you want decomposition outputs with DeTime's artifact and schema contract | +
The release evidence includes a reproducible runtime snapshot generated by
+scripts/generate_performance_snapshot.py. The current committed snapshot was
+generated on Windows 10, Python 3.11.9, AMD64, with native SSA, STD,
+STDR, MA_BASELINE, MSSA, VMD, and GABOR_CLUSTER capabilities
+available.
| Method | +Python mean runtime (ms) | +Native mean runtime (ms) | +Speedup | +
|---|---|---|---|
SSA |
+13.668 | +1.906 | +7.172x | +
STD |
+0.153 | +0.024 | +6.484x | +
STDR |
+0.176 | +0.018 | +9.916x | +
MA_BASELINE |
+0.071 | +0.015 | +4.771x | +
MSSA |
+70.039 | +25.727 | +2.722x | +
VMD |
+50.140 | +14.482 | +3.462x | +
GABOR_CLUSTER |
+2.694 | +0.195 | +13.806x | +
These numbers are a release smoke snapshot, not a universal benchmark.
+python benchmarks/software_comparison/generate_comparison_evidence.py
+python examples/workflow_comparisons/compare_specialist_glue_vs_detime.py
+
+
+
+DecompositionConfig is the single runtime contract shared by Python, CLI,
+docs examples, and machine-facing schema exports.
Current package version target: 0.1.1.
| Field | +Type | +Default | +Semantics | +
|---|---|---|---|
method |
+str |
+required | +Registered method name such as SSA, STD, STDR, or MSSA. |
+
params |
+dict[str, Any] |
+{} |
+Method-specific parameters documented below. | +
return_components |
+list[str] \| None |
+None |
+Compatibility field; retained methods return the normalized result object. | +
backend |
+auto \| native \| python \| gpu |
+auto |
+Backend preference. native requires an available native kernel. |
+
speed_mode |
+exact \| fast |
+exact |
+Accuracy policy. Native SSA uses exact SVD in exact and an iterative approximation in fast. |
+
profile |
+bool |
+False |
+Attach runtime metadata or produce profile reports when routed through the profiler. | +
device |
+str \| None |
+cpu |
+Reserved device selector; retained methods are CPU workflows unless a wrapper says otherwise. | +
n_jobs |
+int |
+1 |
+Parallelism hint for wrappers that support it. | +
seed |
+int \| None |
+42 |
+Seed used by approximate or randomized paths where relevant. | +
channel_names |
+list[str] \| None |
+None |
+Optional labels for aligned multivariate channels. | +
{
+ "backend": "auto",
+ "method": "SSA",
+ "params": {
+ "primary_period": 12,
+ "rank": 6,
+ "window": 24
+ },
+ "seed": 42,
+ "speed_mode": "exact"
+}
+
+{
+ "backend": "auto",
+ "method": "STD",
+ "params": {
+ "period": 12
+ },
+ "speed_mode": "exact"
+}
+
+{
+ "backend": "auto",
+ "channel_names": [
+ "channel_a",
+ "channel_b",
+ "channel_c"
+ ],
+ "method": "MSSA",
+ "params": {
+ "primary_period": 12,
+ "rank": 6,
+ "window": 24
+ },
+ "speed_mode": "exact"
+}
+
+AMD_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
primary_period |
+int | None | +no | +None |
+Dominant period hint used by neural block heuristics. | +
fit_scope |
+str | +no | +"full" |
+Whether to fit templates on the full series or a prefix window. | +
train_fraction |
+float | +no | +0.6 |
+Prefix fraction used when fit_scope='prefix'. | +
multiscale_windows |
+list[int] | None | +no | +None |
+Smoothing windows averaged into the multiscale trend. | +
Example config:
+{
+ "method": "AMD_BLOCK",
+ "params": {
+ "fit_scope": "full",
+ "multiscale_windows": [
+ 13,
+ 25,
+ 49
+ ],
+ "primary_period": 12
+ }
+}
+
+AUTOFORMER_BLOCKunivariateexperimentaltrend, season, residual, components.moving_mean| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
moving_avg |
+int | None | +no | +None |
+Moving-average window used by the extracted forecasting block. | +
window |
+int | None | +no | +None |
+Alias for moving_avg. | +
primary_period |
+int | None | +no | +None |
+Period hint used to derive the moving-average window. | +
Example config:
+{
+ "method": "AUTOFORMER_BLOCK",
+ "params": {
+ "moving_avg": 25,
+ "primary_period": 12
+ }
+}
+
+CEEMDANunivariatestabletrend, season, residual, components.imfs| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
trials |
+int | +no | +50 |
+Number of noise-assisted ensemble trials. | +
noise_width |
+float | +no | +0.05 |
+Relative width of the injected noise. | +
primary_period |
+int | None | +no | +None |
+Period hint for grouping IMFs into season and trend. | +
fs |
+float | +no | +1.0 |
+Sampling frequency used by grouping heuristics. | +
Example config:
+{
+ "method": "CEEMDAN",
+ "params": {
+ "noise_width": 0.05,
+ "primary_period": 12,
+ "trials": 20
+ }
+}
+
+DELELSTM_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
primary_period |
+int | None | +no | +None |
+Dominant period hint used by neural block heuristics. | +
fit_scope |
+str | +no | +"full" |
+Whether to fit templates on the full series or a prefix window. | +
train_fraction |
+float | +no | +0.6 |
+Prefix fraction used when fit_scope='prefix'. | +
alpha |
+float | +no | +0.4 |
+Holt level smoothing coefficient. | +
beta |
+float | +no | +0.2 |
+Holt slope smoothing coefficient. | +
Example config:
+{
+ "method": "DELELSTM_BLOCK",
+ "params": {
+ "alpha": 0.2,
+ "beta": 0.1,
+ "fit_scope": "full",
+ "primary_period": 12
+ }
+}
+
+DLINEAR_BLOCKunivariateexperimentaltrend, season, residual, components.moving_mean| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
moving_avg |
+int | None | +no | +None |
+Moving-average window used by the extracted forecasting block. | +
window |
+int | None | +no | +None |
+Alias for moving_avg. | +
primary_period |
+int | None | +no | +None |
+Period hint used to derive the moving-average window. | +
Example config:
+{
+ "method": "DLINEAR_BLOCK",
+ "params": {
+ "moving_avg": 25,
+ "primary_period": 12
+ }
+}
+
+EMDunivariatestabletrend, season, residual, components.imfs| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
n_imfs |
+int | None | +no | +None |
+Maximum number of intrinsic mode functions to retain. | +
primary_period |
+int | None | +no | +None |
+Period hint for grouping IMFs into season and trend. | +
trend_imfs |
+list[int] | None | +no | +None |
+Explicit IMF indexes assigned to trend. | +
season_imfs |
+list[int] | None | +no | +None |
+Explicit IMF indexes assigned to season. | +
fs |
+float | +no | +1.0 |
+Sampling frequency used by grouping heuristics. | +
Example config:
+{
+ "method": "EMD",
+ "params": {
+ "n_imfs": 4,
+ "primary_period": 12
+ }
+}
+
+FREQMOE_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
primary_period |
+int | None | +no | +None |
+Dominant period hint used by neural block heuristics. | +
fit_scope |
+str | +no | +"full" |
+Whether to fit templates on the full series or a prefix window. | +
train_fraction |
+float | +no | +0.6 |
+Prefix fraction used when fit_scope='prefix'. | +
trend_window |
+int | None | +no | +None |
+Moving-average trend window. | +
num_bands |
+int | +no | +4 |
+Number of frequency bands in the mixture. | +
expert_width |
+int | +no | +64 |
+Frequency expert width used by the scaffold. | +
Example config:
+{
+ "method": "FREQMOE_BLOCK",
+ "params": {
+ "expert_width": 64,
+ "fit_scope": "full",
+ "num_bands": 4,
+ "primary_period": 12
+ }
+}
+
+GABOR_CLUSTERunivariateexperimentaltrend, season, residual, components.clusters| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
model |
+GaborClusterModel | None | +no | +None |
+In-memory trained clustering model. | +
model_path |
+str | None | +no | +None |
+Path to a serialized trained clustering model. | +
max_clusters |
+int | None | +no | +None |
+Optional cap on clusters used during reconstruction. | +
trend_freq_thr |
+float | None | +no | +None |
+Frequency threshold used for trend-like atoms. | +
Example config:
+{
+ "method": "GABOR_CLUSTER",
+ "params": {
+ "model_path": "path/to/trained-gabor-model.pkl"
+ }
+}
+
+INPARFORMER_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
primary_period |
+int | None | +no | +None |
+Dominant period hint used by neural block heuristics. | +
fit_scope |
+str | +no | +"full" |
+Whether to fit templates on the full series or a prefix window. | +
train_fraction |
+float | +no | +0.6 |
+Prefix fraction used when fit_scope='prefix'. | +
trend_window |
+int | None | +no | +None |
+Moving-average trend window. | +
Example config:
+{
+ "method": "INPARFORMER_BLOCK",
+ "params": {
+ "fit_scope": "full",
+ "primary_period": 12,
+ "trend_window": 25
+ }
+}
+
+LEDDAM_BLOCKunivariateexperimentaltrend, season, residual, components.ld_trend, components.kernel| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
kernel_size |
+int | +no | +25 |
+Odd Gaussian smoothing kernel size. | +
sigma |
+float | +no | +1.0 |
+Gaussian smoothing kernel sigma. | +
Example config:
+{
+ "method": "LEDDAM_BLOCK",
+ "params": {
+ "kernel_size": 25,
+ "sigma": 1.0
+ }
+}
+
+MA_BASELINEunivariatestabletrend, season, residual| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
trend_window |
+int | +no | +7 |
+Moving-average window used for the trend estimate. | +
season_period |
+int | None | +no | +None |
+Optional period for a simple seasonal average. | +
Example config:
+{
+ "method": "MA_BASELINE",
+ "params": {
+ "season_period": 12,
+ "trend_window": 7
+ }
+}
+
+MEMDmultivariateoptional-backendtrend, season, residual, components.imfs| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
primary_period |
+int | None | +no | +None |
+Shared period hint for grouping multivariate IMFs. | +
trend_modes |
+list[int] | None | +no | +None |
+Explicit mode indexes assigned to trend. | +
season_modes |
+list[int] | None | +no | +None |
+Explicit mode indexes assigned to season. | +
fs |
+float | +no | +1.0 |
+Sampling frequency used by grouping heuristics. | +
Example config:
+{
+ "method": "MEMD",
+ "params": {
+ "primary_period": 12
+ }
+}
+
+MOVING_AVERAGE_DECOMPOSITION_BLOCKunivariateexperimentaltrend, season, residual, components.moving_mean| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
moving_avg |
+int | None | +no | +None |
+Moving-average window used by the extracted forecasting block. | +
window |
+int | None | +no | +None |
+Alias for moving_avg. | +
primary_period |
+int | None | +no | +None |
+Period hint used to derive the moving-average window. | +
Example config:
+{
+ "method": "MOVING_AVERAGE_DECOMPOSITION_BLOCK",
+ "params": {
+ "moving_avg": 25,
+ "primary_period": 12
+ }
+}
+
+MSSAmultivariateflagshiptrend, season, residual, components.elementary| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
window |
+int | +yes | +required | +Shared embedding window length for aligned channels. | +
rank |
+int | None | +no | +None |
+Number of shared elementary components to retain. | +
primary_period |
+int | None | +no | +None |
+Dominant shared period used by automatic grouping. | +
fs |
+float | +no | +1.0 |
+Sampling frequency used by frequency-based grouping. | +
trend_components |
+list[int] | None | +no | +None |
+Explicit component indexes assigned to trend. | +
season_components |
+list[int] | None | +no | +None |
+Explicit component indexes assigned to season. | +
Example config:
+{
+ "backend": "auto",
+ "channel_names": [
+ "channel_a",
+ "channel_b",
+ "channel_c"
+ ],
+ "method": "MSSA",
+ "params": {
+ "primary_period": 12,
+ "rank": 6,
+ "window": 24
+ },
+ "speed_mode": "exact"
+}
+
+MSTLunivariatestabletrend, season, residual, components.seasonal_terms| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
periods |
+list[int] | +yes | +required | +One or more seasonal periods passed to statsmodels MSTL. | +
windows |
+list[int] | None | +no | +None |
+Optional smoother windows aligned with periods. | +
stl_kwargs |
+dict | None | +no | +None |
+Additional statsmodels STL keyword arguments. | +
Example config:
+{
+ "method": "MSTL",
+ "params": {
+ "periods": [
+ 12,
+ 24
+ ]
+ }
+}
+
+MVMDmultivariateoptional-backendtrend, season, residual, components.modes| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
K |
+int | +no | +4 |
+Number of shared variational modes requested from PySDKit. | +
alpha |
+float | +no | +2000.0 |
+Bandwidth penalty parameter for the MVMD backend. | +
primary_period |
+int | None | +no | +None |
+Shared period hint for grouping modes. | +
fs |
+float | +no | +1.0 |
+Sampling frequency used by grouping heuristics. | +
Example config:
+{
+ "method": "MVMD",
+ "params": {
+ "K": 4,
+ "alpha": 2000.0,
+ "primary_period": 12
+ }
+}
+
+NBEATS_INTERPRETABLEunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
degree_of_polynomial |
+int | +no | +3 |
+Polynomial trend basis degree. | +
num_harmonics |
+int | +no | +8 |
+Number of Fourier harmonics in the seasonality stack. | +
trend_blocks |
+int | +no | +2 |
+Number of interpretable trend blocks. | +
seasonality_blocks |
+int | +no | +2 |
+Number of interpretable seasonality blocks. | +
layers |
+int | +no | +6 |
+Fully connected layers per block. | +
layer_size |
+int | +no | +128 |
+Hidden width for each block. | +
fit_scope |
+str | +no | +"full" |
+Whether to fit on the full series or prefix window. | +
train_fraction |
+float | +no | +0.6 |
+Prefix fraction used when fit_scope='prefix'. | +
n_epochs |
+int | +no | +200 |
+Maximum torch optimization epochs. | +
patience |
+int | +no | +40 |
+Early-stopping patience. | +
restarts |
+int | +no | +2 |
+Number of random restarts. | +
learning_rate |
+float | +no | +0.001 |
+Adam learning rate. | +
weight_decay |
+float | +no | +0.0001 |
+Adam weight decay. | +
device |
+str | +no | +"auto" |
+Torch device: auto, cpu, cuda, or gpu. | +
seed |
+int | +no | +0 |
+Base random seed for torch restarts. | +
Example config:
+{
+ "method": "NBEATS_INTERPRETABLE",
+ "params": {
+ "fit_scope": "full",
+ "n_epochs": 200,
+ "num_harmonics": 8,
+ "restarts": 2
+ }
+}
+
+PARSIMONY_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
primary_period |
+int | None | +no | +None |
+Dominant period hint used by neural block heuristics. | +
fit_scope |
+str | +no | +"full" |
+Whether to fit templates on the full series or a prefix window. | +
train_fraction |
+float | +no | +0.6 |
+Prefix fraction used when fit_scope='prefix'. | +
trend_window |
+int | None | +no | +None |
+Moving-average trend window. | +
num_harmonics |
+int | +no | +2 |
+Number of harmonic seasonal terms. | +
Example config:
+{
+ "method": "PARSIMONY_BLOCK",
+ "params": {
+ "fit_scope": "full",
+ "num_harmonics": 2,
+ "primary_period": 12,
+ "trend_window": 13
+ }
+}
+
+ROBUST_STLunivariatestabletrend, season, residual| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
period |
+int | +yes | +required | +Seasonal period passed to robust statsmodels STL. | +
seasonal |
+int | None | +no | +None |
+Odd LOESS seasonal smoother length. | +
trend |
+int | None | +no | +None |
+Odd LOESS trend smoother length. | +
Example config:
+{
+ "method": "ROBUST_STL",
+ "params": {
+ "period": 12
+ }
+}
+
+SSAunivariateflagshiptrend, season, residual, components.elementary| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
window |
+int | +yes | +required | +Embedding window length for trajectory-matrix construction. | +
rank |
+int | None | +no | +None |
+Number of elementary components to retain before grouping. | +
primary_period |
+int | None | +no | +None |
+Dominant seasonal period used by automatic grouping. | +
fs |
+float | +no | +1.0 |
+Sampling frequency used by frequency-based grouping. | +
trend_components |
+list[int] | None | +no | +None |
+Explicit component indexes assigned to trend. | +
season_components |
+list[int] | None | +no | +None |
+Explicit component indexes assigned to season. | +
power_iterations |
+int | +no | +4 |
+Fast native mode iteration count when speed_mode='fast'. | +
Example config:
+{
+ "backend": "auto",
+ "method": "SSA",
+ "params": {
+ "primary_period": 12,
+ "rank": 6,
+ "window": 24
+ },
+ "seed": 42,
+ "speed_mode": "exact"
+}
+
+STDchannelwiseflagshiptrend, season, residual, components.dispersion, components.seasonal_shape| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
period |
+int | +yes | +required | +Seasonal period in samples. | +
max_period_search |
+int | None | +no | +None |
+Optional search horizon when period inference is enabled. | +
eps |
+float | +no | +1e-08 |
+Small numerical guard for dispersion calculations. | +
Example config:
+{
+ "backend": "auto",
+ "method": "STD",
+ "params": {
+ "period": 12
+ },
+ "speed_mode": "exact"
+}
+
+STDRchannelwiseflagshiptrend, season, residual, components.dispersion, components.seasonal_shape| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
period |
+int | +yes | +required | +Seasonal period in samples. | +
max_period_search |
+int | None | +no | +None |
+Optional search horizon when period inference is enabled. | +
eps |
+float | +no | +1e-08 |
+Small numerical guard for robust dispersion calculations. | +
Example config:
+{
+ "backend": "auto",
+ "method": "STDR",
+ "params": {
+ "period": 12
+ },
+ "speed_mode": "exact"
+}
+
+STLunivariatestabletrend, season, residual| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
period |
+int | +yes | +required | +Seasonal period passed to statsmodels STL. | +
seasonal |
+int | None | +no | +None |
+Odd LOESS seasonal smoother length. | +
trend |
+int | None | +no | +None |
+Odd LOESS trend smoother length. | +
robust |
+bool | +no | +false |
+Whether to use robust LOESS fitting. | +
Example config:
+{
+ "method": "STL",
+ "params": {
+ "period": 12
+ }
+}
+
+ST_MTM_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
primary_period |
+int | None | +no | +None |
+Dominant period hint used by neural block heuristics. | +
fit_scope |
+str | +no | +"full" |
+Whether to fit templates on the full series or a prefix window. | +
train_fraction |
+float | +no | +0.6 |
+Prefix fraction used when fit_scope='prefix'. | +
trend_window |
+int | None | +no | +None |
+Moving-average trend window. | +
season_smooth_window |
+int | None | +no | +None |
+Smoother applied to the periodic seasonal template. | +
Example config:
+{
+ "method": "ST_MTM_BLOCK",
+ "params": {
+ "fit_scope": "full",
+ "primary_period": 12,
+ "season_smooth_window": 7,
+ "trend_window": 13
+ }
+}
+
+TIMEKAN_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
primary_period |
+int | None | +no | +None |
+Dominant period hint used by neural block heuristics. | +
fit_scope |
+str | +no | +"full" |
+Whether to fit templates on the full series or a prefix window. | +
train_fraction |
+float | +no | +0.6 |
+Prefix fraction used when fit_scope='prefix'. | +
trend_window |
+int | None | +no | +None |
+Moving-average trend window. | +
num_bands |
+int | +no | +2 |
+Number of dominant periods/templates to blend. | +
kan_width |
+int | +no | +32 |
+KAN-inspired width used to choose harmonic capacity. | +
Example config:
+{
+ "method": "TIMEKAN_BLOCK",
+ "params": {
+ "fit_scope": "full",
+ "kan_width": 32,
+ "num_bands": 2,
+ "primary_period": 12
+ }
+}
+
+TIMES2D_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
primary_period |
+int | None | +no | +None |
+Dominant period hint used by neural block heuristics. | +
fit_scope |
+str | +no | +"full" |
+Whether to fit templates on the full series or a prefix window. | +
train_fraction |
+float | +no | +0.6 |
+Prefix fraction used when fit_scope='prefix'. | +
top_k_periods |
+int | +no | +2 |
+Number of dominant FFT periods to retain. | +
num_harmonics |
+int | +no | +1 |
+Number of harmonics per selected period. | +
trend_window |
+int | None | +no | +None |
+Moving-average trend window. | +
Example config:
+{
+ "method": "TIMES2D_BLOCK",
+ "params": {
+ "fit_scope": "full",
+ "num_harmonics": 1,
+ "primary_period": 12,
+ "top_k_periods": 2
+ }
+}
+
+VMDunivariatestabletrend, season, residual, components.modes| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
K |
+int | +no | +4 |
+Number of variational modes. | +
alpha |
+float | +no | +2000.0 |
+Bandwidth penalty parameter. | +
tau |
+float | +no | +0.0 |
+Dual ascent time step. | +
DC |
+bool | +no | +false |
+Keep the first mode at zero frequency. | +
init |
+int | +no | +1 |
+Initialization policy used by the VMD backend. | +
tol |
+float | +no | +1e-07 |
+Convergence tolerance. | +
primary_period |
+int | None | +no | +None |
+Period hint for grouping modes into season and trend. | +
Example config:
+{
+ "method": "VMD",
+ "params": {
+ "K": 4,
+ "alpha": 2000.0,
+ "primary_period": 12
+ }
+}
+
+WAVEFORM_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
wavelet |
+str | +no | +"db4" |
+PyWavelets wavelet family name. | +
level |
+int | +no | +3 |
+Wavelet decomposition depth. | +
season_levels |
+list[int] | +no | +[1, 2] |
+Detail coefficient levels assigned to the seasonal component. | +
Example config:
+{
+ "method": "WAVEFORM_BLOCK",
+ "params": {
+ "level": 3,
+ "season_levels": [
+ 1,
+ 2
+ ],
+ "wavelet": "sym4"
+ }
+}
+
+WAVELETunivariatestabletrend, season, residual, components.coefficients| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
wavelet |
+str | +no | +"db4" |
+PyWavelets wavelet family name. | +
level |
+int | None | +no | +None |
+Decomposition depth. Defaults to PyWavelets maximum usable level. | +
trend_levels |
+list[int] | None | +no | +None |
+Detail levels assigned to trend reconstruction. | +
season_levels |
+list[int] | None | +no | +None |
+Detail levels assigned to seasonal reconstruction. | +
Example config:
+{
+ "method": "WAVELET",
+ "params": {
+ "level": 3,
+ "wavelet": "db4"
+ }
+}
+
+WAVELETMIXER_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
wavelet |
+str | +no | +"sym4" |
+PyWavelets wavelet family name. | +
level |
+int | +no | +4 |
+Wavelet decomposition depth. | +
season_levels |
+list[int] | +no | +[1, 2, 3] |
+Detail coefficient levels assigned to the seasonal component. | +
Example config:
+{
+ "method": "WAVELETMIXER_BLOCK",
+ "params": {
+ "level": 3,
+ "season_levels": [
+ 1,
+ 2,
+ 3
+ ],
+ "wavelet": "coif1"
+ }
+}
+
+XPATCH_BLOCKunivariateexperimentaltrend, season, residual, components.trend, components.season| Parameter | +Type | +Required | +Default | +Description | +
|---|---|---|---|---|
ma_type |
+str | +no | +"ema" |
+Smoothing type, either 'ema' or 'dema'. | +
trend_window |
+int | None | +no | +None |
+Window used to derive the EMA alpha. | +
season_smooth |
+int | None | +no | +None |
+Optional moving-average smoother for the seasonal residual. | +
alpha |
+float | None | +no | +None |
+EMA or DEMA level smoothing coefficient. | +
beta |
+float | None | +no | +None |
+DEMA slope smoothing coefficient. | +
Example config:
+{
+ "method": "XPATCH_BLOCK",
+ "params": {
+ "season_smooth": 7,
+ "trend_window": 25
+ }
+}
+DeTime follows the repository-level contribution, conduct, and security +documents:
+ +When contributing code, prefer changes that strengthen the canonical detime
+package first. New benchmark workflows should be proposed against the companion
+de-time-bench repository rather than against the main package.
Noise-assisted EMD
+ +| Property | +Value | +
|---|---|
| Method | +CEEMDAN |
+
| Input mode | +univariate |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["CEEMDAN"]
+run_gallery_case("CEEMDAN")
+
++CEEMDAN: Noise-assisted EMD +status: ran +... ++

Empirical mode decomposition
+ +| Property | +Value | +
|---|---|
| Method | +EMD |
+
| Input mode | +univariate |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["EMD"]
+run_gallery_case("EMD")
+
++EMD: Empirical mode decomposition +status: ran +... ++

Experimental Gabor clustering path
+ +| Property | +Value | +
|---|---|
| Method | +GABOR_CLUSTER |
+
| Input mode | +univariate |
+
| Trend shape | +`` | +
| Status | +skipped | +
| Residual RMSE | +n/a | +
case = CASES["GABOR_CLUSTER"]
+print(case["skip"])
+
++GABOR_CLUSTER: Experimental Gabor clustering path +status: skipped +... ++
Moving-average baseline
+ +| Property | +Value | +
|---|---|
| Method | +MA_BASELINE |
+
| Input mode | +univariate |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["MA_BASELINE"]
+run_gallery_case("MA_BASELINE")
+
++MA_BASELINE: Moving-average baseline +status: ran +... ++

Optional multivariate EMD backend
+ +| Property | +Value | +
|---|---|
| Method | +MEMD |
+
| Input mode | +multivariate |
+
| Trend shape | +(96, 3) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["MEMD"]
+run_gallery_case("MEMD")
+
++MEMD: Optional multivariate EMD backend +status: ran +... ++

Multivariate SSA
+ +| Property | +Value | +
|---|---|
| Method | +MSSA |
+
| Input mode | +multivariate |
+
| Trend shape | +(96, 3) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["MSSA"]
+run_gallery_case("MSSA")
+
++MSSA: Multivariate SSA +status: ran +... ++

Statsmodels MSTL wrapper
+ +| Property | +Value | +
|---|---|
| Method | +MSTL |
+
| Input mode | +univariate |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["MSTL"]
+run_gallery_case("MSTL")
+
++MSTL: Statsmodels MSTL wrapper +status: ran +... ++

Optional multivariate VMD backend
+ +| Property | +Value | +
|---|---|
| Method | +MVMD |
+
| Input mode | +multivariate |
+
| Trend shape | +(96, 3) |
+
| Status | +ran | +
| Residual RMSE | +0.08323657 | +
case = CASES["MVMD"]
+run_gallery_case("MVMD")
+
++MVMD: Optional multivariate VMD backend +status: ran +... ++

Robust STL wrapper
+ +| Property | +Value | +
|---|---|
| Method | +ROBUST_STL |
+
| Input mode | +univariate |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["ROBUST_STL"]
+run_gallery_case("ROBUST_STL")
+
++ROBUST_STL: Robust STL wrapper +status: ran +... ++

Univariate SSA
+ +| Property | +Value | +
|---|---|
| Method | +SSA |
+
| Input mode | +univariate |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["SSA"]
+run_gallery_case("SSA")
+
++SSA: Univariate SSA +status: ran +... ++

Seasonal-trend decomposition
+ +| Property | +Value | +
|---|---|
| Method | +STD |
+
| Input mode | +channelwise |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["STD"]
+run_gallery_case("STD")
+
++STD: Seasonal-trend decomposition +status: ran +... ++

Robust seasonal-trend decomposition
+ +| Property | +Value | +
|---|---|
| Method | +STDR |
+
| Input mode | +channelwise |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["STDR"]
+run_gallery_case("STDR")
+
++STDR: Robust seasonal-trend decomposition +status: ran +... ++

Statsmodels STL wrapper
+ +| Property | +Value | +
|---|---|
| Method | +STL |
+
| Input mode | +univariate |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["STL"]
+run_gallery_case("STL")
+
++STL: Statsmodels STL wrapper +status: ran +... ++

Variational mode decomposition
+ +| Property | +Value | +
|---|---|
| Method | +VMD |
+
| Input mode | +univariate |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.03421948 | +
case = CASES["VMD"]
+run_gallery_case("VMD")
+
++VMD: Variational mode decomposition +status: ran +... ++

Wavelet decomposition
+ +| Property | +Value | +
|---|---|
| Method | +WAVELET |
+
| Input mode | +univariate |
+
| Trend shape | +(96,) |
+
| Status | +ran | +
| Residual RMSE | +0.00000000 | +
case = CASES["WAVELET"]
+run_gallery_case("WAVELET")
+
++WAVELET: Wavelet decomposition +status: ran +... ++

You can modify this app directly by editing index.html in the Files and versions tab.
-- Also don't forget to check the - Spaces documentation. -
-DeTime is a time-series decomposition Python package and CLI workflow layer for +trend, oscillation, residual, method-specific components, and metadata across +univariate and aligned multichannel decomposition workflows.
+
+ Scientific toolkit / workflow system
+One interface for trend, oscillation, residual, and metadata.
+Give DeTime one series or aligned multichannel data. It returns trend, seasonal or oscillatory structure, residuals, method-specific components, and metadata through the same Python and CLI interface.
+ +detime
+ Distribution: de-time
+ Flagship methods: SSA / STD / STDR / MSSA
+ Machine-facing schemas and low-token result modes
+The quant trading column keeps DeTime in its proper role: a decomposition layer that routes real market inputs into trend, cycle, residual, signal, and backtest research steps.
+DeTime exists because decomposition work often moves between notebooks, method-specific wrappers, CLI scripts, and machine-facing automation. The package keeps the method choice flexible while preserving one Python/CLI surface and one result contract.
+decompose() entrypoint
+ DecompResult for trend, season, residual, components, and meta
+ DecompositionConfig model across Python and CLI usage
+ DeTime keeps the user-facing contract stable while the method underneath can change. The same shape of result comes back whether you start with a single series or an aligned multichannel panel.
+DecompositionConfig(method, params)
+ decompose(...) or detime run
+ trend, season, residual, components, metadata
+ DecompositionConfig(method, params)
+ decompose(...) or detime run
+ Current GitHub install path, extras, native build prerequisites, and FAQ.
+ + + +First successful Python and CLI runs with the retained DeTime surface.
+ + + +Pick a flagship path quickly before dropping into wrappers or optional backends.
+ + + +GitHub-visible plots and summaries for the retained decomposition methods.
+ +Real market data, decomposition features, strategy maps, backtesting adapters, and walk-forward validation.
+ + +Real public-data trend and cycle decomposition for research, open models, developer attention, markets, and crypto.
+ +Method families, maturity levels, and where to start on the retained surface.
+ + + +Inputs, maturity, parameters, dependencies, outputs, and recommended use in one table.
+ + + +Top-level DecompositionConfig fields plus per-method parameter semantics.
Canonical Python surface, config and result contracts, and CLI summary.
+ +
+ Follow the retained single-series path from example data to plotted components and saved outputs.
+
+ Move from aligned channels to shared-structure decomposition and machine-readable result artifacts.
+When to use DeTime and when to use specialist packages directly.
+ + + +Coverage boundaries, release checks, generated evidence, and validation commands.
+ + + +Primary literature and official upstream package links for retained methods.
+ + + +Package citation metadata, release notes, and links needed for software review.
+ +Install the latest released package from PyPI:
+python -m pip install de-time
+
+Optional multivariate backends for MVMD and MEMD install with:
python -m pip install "de-time[multivar]"
+
+Optional EMD-family wrappers for EMD and CEEMDAN install with:
python -m pip install "de-time[emd]"
+
+Optional torch-backed neural block support for NBEATS_INTERPRETABLE installs with:
python -m pip install "de-time[neural]"
+
+Notebook tooling for the method gallery installs with:
+python -m pip install "de-time[notebook]"
+
+Names used by this project:
+| Context | +Name | +
|---|---|
| Project/product | +DeTime |
+
| Python distribution | +de-time |
+
| Python import | +detime |
+
| Deprecated compatibility alias | +tsdecomp |
+
Do not install the unrelated detime
+package from PyPI when you want this project; that package is not DeTime.
To install the unreleased main branch directly from GitHub:
python -m pip install "git+https://github.com/systems-mechanobiology/DeTime.git"
+
+Use an editable install for local development, release preparation, or when
+you need the unreleased main branch directly from the repository.
python -m pip install --upgrade pip
+python -m pip install -e .[dev,docs]
+
+For optional multivariate wrappers during development:
+python -m pip install -e .[dev,docs,multivar]
+
+For the EMD and torch-backed neural extras during development:
+python -m pip install -e .[dev,docs,emd,neural]
+
+Most users will install from wheels and do not need a local compiler. If a +wheel is unavailable and pip falls back to building from source, you need:
+3.10+scikit-build-core buildTypical source-build prerequisites by platform:
+PATHDeTime ships native kernels for selected flagship methods:
+SSASTDSTDRBackend behavior:
+backend="auto"backend="python"backend="native"For SSA:
speed_mode="exact" uses the deterministic exact decomposition contractspeed_mode="fast" uses the approximate iterative pathYou can inspect the available native exports with:
+from detime import native_capabilities
+
+print(native_capabilities())
+
+MVMD and MEMD are optional-backend methods, not core bundled
+implementations. They require the multivar extra and currently depend on the
+installed PySDKit backend. The
+full method literature and upstream package links live in
+Method References.
If you want reviewer-grade evidence that those wrappers work in your +environment, run:
+python examples/optional_multivariate_backends.py
+
+EMD and CEEMDAN require the emd extra because they import PyEMD from the
+EMD-signal distribution at runtime. WAVELET, WAVEFORM_BLOCK, and
+WAVELETMIXER_BLOCK use PyWavelets, which is part of the default DeTime
+dependency set.
Most neural block methods are lightweight NumPy implementations. The exception
+is NBEATS_INTERPRETABLE, which requires torch and is installed through the
+neural extra.
The preferred import is detime. The compatibility scope retained through
+0.1.x is limited to:
import tsdecomptsdecomp executablepython -m tsdecompTransition-era submodules such as tsdecomp.backends,
+tsdecomp.leaderboard, and tsdecomp.methods.* are intentionally excluded
+from install artifacts.
python -m pip uninstall -y detime
+python -m pip install de-time
+
+
+
+python -m pip install --upgrade pip
+python -m pip install --no-cache-dir de-time
+
+
+
+python -m pip install "de-time[multivar]"
+python -m pip install "de-time[emd]"
+python -m pip install "de-time[neural]"
+
+
+
+python -m pip install -e .[dev,docs]
+
+
+
+