From 690995d115c5ff398af22be68d08095ad8980839 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Fri, 11 Jul 2025 08:32:50 +0100 Subject: [PATCH] use `backend=` instead of deprecated `native_namespace=` in `nw.from_dict` --- hierarchicalforecast/evaluation.py | 2 +- nbs/src/evaluation.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hierarchicalforecast/evaluation.py b/hierarchicalforecast/evaluation.py index f5c0d916..b009942e 100644 --- a/hierarchicalforecast/evaluation.py +++ b/hierarchicalforecast/evaluation.py @@ -486,7 +486,7 @@ def evaluate( }, **dict(zip(model_names, evaluation_np.T)), }, - native_namespace=native_namespace, + backend=native_namespace, ) evaluation = evaluation_nw.to_native() diff --git a/nbs/src/evaluation.ipynb b/nbs/src/evaluation.ipynb index 3ed11726..6d42bd5f 100644 --- a/nbs/src/evaluation.ipynb +++ b/nbs/src/evaluation.ipynb @@ -536,7 +536,7 @@ " **{\"level\": evaluation_index_np[:, 0], \"metric\": evaluation_index_np[:, 1]},\n", " **dict(zip(model_names, evaluation_np.T))\n", " }, \n", - " native_namespace=native_namespace)\n", + " backend=native_namespace)\n", "\n", " evaluation = evaluation_nw.to_native()\n", "\n",