We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
self._num_features
1 parent 6b5a778 commit 05e8962Copy full SHA for 05e8962
qiskit_machine_learning/kernels/base_kernel.py
@@ -1,6 +1,6 @@
1
# This code is part of a Qiskit project.
2
#
3
-# (C) Copyright IBM 2022, 2023.
+# (C) Copyright IBM 2022, 2025.
4
5
# This code is licensed under the Apache License, Version 2.0. You may
6
# obtain a copy of this license in the LICENSE.txt file in the root directory
@@ -116,7 +116,7 @@ def _validate_input(
116
raise ValueError(
117
f"x_vec and class feature map have incompatible dimensions.\n"
118
f"x_vec has {x_vec.shape[1]} dimensions, "
119
- f"but feature map has {self._feature_map.num_parameters}."
+ f"but feature map has {self._num_features}."
120
) from a_e
121
122
if y_vec is not None:
0 commit comments