Skip to content

Commit 56bbed0

Browse files
authored
Correct self._num_features in ValueError (#981)
1 parent 7b57913 commit 56bbed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiskit_machine_learning/kernels/base_kernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _validate_input(
130130
raise ValueError(
131131
f"x_vec and class feature map have incompatible dimensions.\n"
132132
f"x_vec has {x_vec.shape[1]} dimensions, "
133-
f"but feature map has {self._feature_map.num_parameters}."
133+
f"but feature map has {self._num_features}."
134134
) from a_e
135135

136136
if y_vec is not None:

0 commit comments

Comments
 (0)