Repository navigation
[Kumo-Anomaly 1/n] Add DPM-Solver++ sampler - #1190
Merged
Merged
Conversation
aw471
force-pushed
the
aw471/kumo-anomaly-2-sampler
branch
from
October 20, 2026 17:33
6d2b046 to
4965266
Compare
aw471
force-pushed
the
aw471/kumo-anomaly-2-sampler
branch
2 times, most recently
from
October 21, 2026 17:07
4645e56 to
dc8dc89
Compare
aw471
marked this pull request as ready for review
October 21, 2026 17:34
aw471
requested review from
RBendias,
akihironitta and
rusty1s
as code owners
October 21, 2026 17:34
aw471
force-pushed
the
aw471/kumo-anomaly-2-sampler
branch
3 times, most recently
from
October 21, 2026 20:16
57c2782 to
69adeed
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1190 +/- ##
==========================================
+ Coverage 82.63% 82.71% +0.08%
==========================================
Files 171 172 +1
Lines 10979 11033 +54
==========================================
+ Hits 9072 9126 +54
Misses 1907 1907 ☔ View full report in Codecov by Harness. |
aw471
force-pushed
the
aw471/kumo-anomaly-2-sampler
branch
from
October 21, 2026 20:34
69adeed to
3c91ed4
Compare
Co-authored-by: Aditi Gautam <adgautam@nvidia.com>
aw471
force-pushed
the
aw471/kumo-anomaly-2-sampler
branch
from
October 21, 2026 21:08
3c91ed4 to
9bd692b
Compare
Collaborator
Author
|
/ok to test 9bd692b |
rusty1s
added a commit
that referenced
this pull request
Oct 22, 2026
# Summary > Implements `KumoAnomaly.forward` and the `_KumoAnomaly` core for the contract from #1220, so the model scores each time step of a multivariate series by its reconstruction error. Weights are randomly initialized here; loading the checkpoint follows later in this stack. # Description of the change > `model(x, *, recipe=None, num_samples=30, num_steps=20, callbacks=None, generator=None)` fits the recipe from #1221 on `x` (shape `[..., R, D]`, with rows as ordered time steps) and returns scores with shape `[..., R, 1]`. Callbacks follow `ICLModel`: `on_query_preprocessing_end` runs after pre-processing and `on_model_forward_end` after the forward pass, and gradients are enabled when training or when a callback requires them. Unsupported feature stypes trigger the same warning as in `ICLModel`, and more than 40 features after pre-processing raise. > > Rows are split into windows of 100 time steps, and the final partial window is padded by repeating its last row. Each window is normalized by its scalar mean and standard deviation, and four alternating blocks are reconstructed under two complementary masks with the DPM-Solver++ sampler from #1190. The lower median over `num_samples` draws per mask gives the reconstruction, and the score is the mean absolute reconstruction error across features. > > The implementation comes from Aditi Gautam's `model.py` in #1167, adapted to the `Model` contract from #1220. This PR is stacked on #1190. # Validation > n/a --------- Co-authored-by: rusty1s <matthias.fey@tu-dortmund.de> Co-authored-by: Aditi Gautam <adgautam@nvidia.com>
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.
Summary
Description of the change
Validation