Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
5789a99
draft MVP
jakubchlapek Feb 10, 2026
dc48b97
covariate support
jakubchlapek Feb 12, 2026
0cc488e
pyfunc series info extension
jakubchlapek Feb 12, 2026
b6ce538
unit tests
jakubchlapek Feb 12, 2026
605ecbe
add mlflow to dependencies
jakubchlapek Feb 12, 2026
3c2a2e2
changed to sqlite
jakubchlapek Feb 12, 2026
1750b11
kwargs pyfunc extension
jakubchlapek Feb 12, 2026
30456f5
removing pyfunc draft support: tbd if to include in future
jakubchlapek Feb 16, 2026
b69de4a
slight refactor by leveraging built-in mflflow validation util methods
jakubchlapek Feb 16, 2026
c488cd7
restructuring module
jakubchlapek Feb 16, 2026
7fe3cf3
autologging refactor w/ mlflow decorator
jakubchlapek Feb 16, 2026
ada47b7
refactoring log_model to leverage Model.log
jakubchlapek Feb 16, 2026
9fbe42a
unit test improvenemnts
jakubchlapek Feb 17, 2026
a0e663f
ForecastingModel subclasses handling for autolog
jakubchlapek Feb 17, 2026
93ca22a
save models with clean=True
jakubchlapek Feb 17, 2026
ac4b0c6
logging update
jakubchlapek Feb 17, 2026
a35a834
unused var, tfmodel.load handles .ckpt internally
jakubchlapek Feb 17, 2026
2695cc9
documentation
jakubchlapek Feb 18, 2026
662b8e3
added autolog logging default/provided metrics for all models
jakubchlapek Feb 18, 2026
f19d6bf
autolog metric unit tests
jakubchlapek Feb 18, 2026
bd932a9
removed redundant tests
jakubchlapek Feb 18, 2026
3b0ecb2
changed callback inject to true by default
jakubchlapek Feb 18, 2026
2d6158d
feat: ensure contiguous tensors in metric updates
jakubchlapek Feb 18, 2026
f684041
example quickstart for mlflow
jakubchlapek Feb 18, 2026
4495115
Merge branch 'master' into feat/mlflow-base
jakubchlapek Feb 18, 2026
894779b
unit test mps fix for torch
jakubchlapek Feb 18, 2026
c9a1301
typehinting fix
jakubchlapek Feb 18, 2026
a65612d
CI hotfix
jakubchlapek Feb 18, 2026
2123742
temporary fix for catboost, to be removed later
jakubchlapek Feb 18, 2026
2b41feb
scrap backtesting in favor of metric patching
jakubchlapek Feb 24, 2026
b119e7b
metric patching unit tests
jakubchlapek Feb 24, 2026
f561438
pytorch autolog
jakubchlapek Feb 25, 2026
df7e097
unit tests for pytorch autolog
jakubchlapek Feb 25, 2026
a7e4646
Merge branch 'master' into feat/mlflow-base
daidahao Mar 5, 2026
99f161c
Revert catboost cap
daidahao Mar 5, 2026
1c7b073
Replace raise_if and raise_if_not
daidahao Mar 5, 2026
e885b64
Use abs path
daidahao Mar 5, 2026
b46cf95
Use direct path for saving model
daidahao Mar 5, 2026
51a47f2
Update #2
daidahao Mar 5, 2026
28c11ed
Use mlflow class utils to replace insepctlib
daidahao Mar 5, 2026
ddae08a
Fix tests
daidahao Mar 5, 2026
91f6660
Get all forecasting models ith inspect
daidahao Mar 5, 2026
ce56906
Rename `log_torch_metrics`
daidahao Mar 5, 2026
3dcceac
Change `save_model` param order
daidahao Mar 5, 2026
1b7fa89
Update `log_model` params
daidahao Mar 5, 2026
b8a4f8d
Remove `log_params` from `log_model()`
daidahao Mar 5, 2026
331c4c3
Update unit tests
daidahao Mar 5, 2026
2396f16
Simplify `_is_torch_model`
daidahao Mar 5, 2026
7646dde
Move `_patched_fit` inside `_autolog()`
daidahao Mar 5, 2026
948ab56
Handle single series in metric patching
daidahao Mar 5, 2026
6ad82f7
Update covariate logging logic
daidahao Mar 5, 2026
abf24f5
Update tests and wait for completion
daidahao Mar 5, 2026
774a222
Remove `PL_AVAILABLE` flag
daidahao Mar 5, 2026
3c9296f
Add post-fitting metric TODO note
daidahao Mar 5, 2026
a7bca2e
chore: rename mlflow jupyter from 26 to 27
mizeller Mar 6, 2026
eb8f8cd
chore: fix jupyter for mlflow; work in progress
mizeller Mar 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ docs_env
.venv

uv.lock
repl/
examples/mlruns/*
7 changes: 5 additions & 2 deletions darts/models/forecasting/pl_forecasting_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,11 @@ def _update_metrics(self, output, target, metrics):
pred = output.squeeze(dim=-1)

# torch metrics require 2D targets of shape (batch size * ocl, num targets)
target = target.reshape(-1, self.n_targets)
pred = pred.reshape(-1, self.n_targets)
# contiguous() is needed because model outputs can be non-contiguous views
# (e.g. NBEATS slices the last dimension), and some torchmetrics implementations
# call .view() internally which requires a contiguous tensor.
target = target.reshape(-1, self.n_targets).contiguous()
pred = pred.reshape(-1, self.n_targets).contiguous()

metrics.update(pred, target)

Expand Down
8 changes: 8 additions & 0 deletions darts/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@
logger.warning("Ray not installed - Some tests will be skipped.")
RAY_AVAILABLE = False

try:
import mlflow # noqa: F401

MLFLOW_AVAILABLE = True
except ImportError:
logger.warning("MLflow not installed - Some tests will be skipped.")
MLFLOW_AVAILABLE = False

try:
import polars # noqa: F401

Expand Down
Loading
Loading