Repository navigation
We are excited to announce the release of SDM 0.3.0 πππ
Highlights
Training Code for Kumo Tabular
You can now train Kumo Tabular from scratch. The training code and guide cover classification and regression for all three model sizes.
Kumo Tabular was pretrained entirely on synthetic tables sampled from structural causal models. You can use the same building blocks in sdm.prior to generate your own data.
import sdm
from sdm.prior.tabular import SCMPrior, SchemaSampler
sampler = SCMPrior(
schema_sampler=SchemaSampler(
task_type=sdm.Task.regression,
num_columns=6,
cat_ratio=0.5,
max_cardinality=4,
),
dag_sampler=sdm.prior.RandomCauchyDAGSampler(num_nodes=4),
latent_channels=2,
root_sampler=sdm.prior.NormalRootSampler(),
random_fn=sdm.prior.RandomLinear(),
parent_merger=sdm.prior.ConcatParentMerger(),
numerical_converter=sdm.prior.IdentityConverter(),
categorical_converter=sdm.prior.NearestNeighborConverter(p=2.0),
)
features, target = sampler.sample(num_rows=1_024)
print(features)
# TableTensor(
# size=(1024, 6),
# blocks={
# numerical (3): [x_0, x_4, x_5],
# categorical (3): [x_1, x_2, x_3],
# },
# )
print(target)
# TableTensor(
# size=(1024, 1),
# blocks={
# numerical (1): [target],
# },
# )For more details:
- Technical report (arXiv) for the model architecture, synthetic training data, training procedure, and evaluation results.
- Hugging Face blog post for an overview of Kumo Tabular and how to get started.
- Model card and pretrained weights for checkpoints, usage instructions, and licensing.
Time Series Foundation Models
Time series foundation models (TSFMs) learn patterns from a wide range of time series and apply what they learn to new datasets. SDM 0.3.0 brings forecasting and anomaly detection models into the same PyTorch-native library used for tabular and relational prediction.
In time series forecasting, past observations provide context for predicting future values. Covariates can add information about the past or the forecast horizon.
SDM 0.3.0 adds support for three forecasting models and one model for multivariate anomaly detection.
Chronos2(paper, official code, weights): Multivariate forecasting with covariates and optional cross-learning across examples in a batch.TimesFM3(blog, official code, model weights): Multivariate time-series forecasting with historical and known future covariates.KumoForecast(paper, official code, model weights): Rebranded from the NV-Tesseract forecasting model, Kumo Forecast can use DARR to retrieve similar historical windows for multivariate forecasts.KumoAnomaly(paper, official code, model weights): Rebranded from NV-Tesseract-AD, Kumo Anomaly detects anomalies in multivariate time series and returns reconstruction error scores and anomaly labels.
See the following references:
sdm.modelsfor the full list of SDM models.benchmark/timeseries/gift_eval/for scripts to evaluateChronos2andTimesFM3on GIFT-Eval.benchmark/timeseries/fev_bench/for scripts to evaluateChronos2andTimesFM3on fev-bench.benchmark/timeseries/time_bench/for scripts to evaluateChronos2andTimesFM3on TIME.- Time Series Forecasting for examples of univariate and multivariate forecasting, including how to use covariates.
Breaking Changes
- Replace
sdm.processing.ClipSoft(bound)withsdm.processing.Clip(-bound, bound, method="saturate"). (#1149) sdm.processing.ClipSigmanow defaults to hard clipping. Setmethod="log"to retain the previous logarithmic clipping behavior. (#1149)
New Contributors
- @alan-kumo made their first contribution in #1011
- @Vedaant-J made their first contribution in #1181
- @charlottechan-crypto made their first contribution in #1249
- @aaronzo made their first contribution in #1236
- @AkilsuryaS made their first contribution in #1291
- @dubey031 made their first contribution in #1337
Full Changelog: v0.2.1...v0.3.0