diff --git a/docs/tutorials/03_quantum_kernel.ipynb b/docs/tutorials/03_quantum_kernel.ipynb index f6598c954..5380bfa5f 100644 --- a/docs/tutorials/03_quantum_kernel.ipynb +++ b/docs/tutorials/03_quantum_kernel.ipynb @@ -724,7 +724,7 @@ "outputs": [], "source": [ "matrix_train = qpca_kernel.evaluate(x_vec=train_features)\n", - "matrix_test = qpca_kernel.evaluate(x_vec=test_features, y_vec=test_features)" + "matrix_test = qpca_kernel.evaluate(x_vec=test_features, y_vec=train_features)" ] }, { @@ -755,7 +755,7 @@ "\n", "kernel_pca_q = KernelPCA(n_components=2, kernel=\"precomputed\")\n", "train_features_q = kernel_pca_q.fit_transform(matrix_train)\n", - "test_features_q = kernel_pca_q.fit_transform(matrix_test)" + "test_features_q = kernel_pca_q.transform(matrix_test)" ] }, { @@ -774,7 +774,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Logistic regression score: 1.0\n" + "Logistic regression score: 0.9\n" ] } ],