Skip to content

SDM 0.3.0

Latest

Choose a tag to compare

@akihironitta akihironitta released this 20 Nov 16:00
· 105 commits to main since this release
c4e6485

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:

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.

Multivariate forecasting with past targets, past-only covariates, and known future covariates

SDM 0.3.0 adds support for three forecasting models and one model for multivariate anomaly detection.

See the following references:

Breaking Changes

New Contributors

Full Changelog: v0.2.1...v0.3.0