From 37ee7d601517d19959a579a3f6dce6fe45b28dea Mon Sep 17 00:00:00 2001 From: gcattan Date: Mon, 13 Jan 2025 21:41:03 +0100 Subject: [PATCH] fix:cobyla is not always the classical optimizer --- pyriemann_qiskit/classification.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyriemann_qiskit/classification.py b/pyriemann_qiskit/classification.py index 671b8011..174ae367 100644 --- a/pyriemann_qiskit/classification.py +++ b/pyriemann_qiskit/classification.py @@ -655,7 +655,9 @@ def _get_docplex_optimizer_from_params_bag( optimizer=qaoa_optimizer, ) else: - logger._log("Using ClassicalOptimizer (COBYLA)") + logger._log( + f"Using ClassicalOptimizer ({type(classical_optimizer).__name__})" + ) return ClassicalOptimizer(classical_optimizer)