class_docstr: Tests computation of kernel target alignment.
class_docstr_tok: ["Tests","computation","of","kernel","target","alignment","."]
docstr: Test value of kernel target alignment without class label rescaling (2/3).
docstr_tok: ["Test","value","of","kernel","target","alignment","without","class","label","rescaling","(","2\/3",")","."]
code: def test_alignment_value_other_labels(self):
      """Test value of kernel target alignment without class label rescaling (2/3)."""
      X = [0.1, 0.4]
      Y = [1, 1]
      alignment = kern.target_alignment(
          X,
          Y,
          lambda x1, x2: _mock_kernel(x1, x2, []),
          rescale_class_labels=False,
      )
      alignment_assume = kern.target_alignment(
          X,
          Y,
          lambda x1, x2: _mock_kernel(x1, x2, []),
          assume_normalized_kernel=True,
          rescale_class_labels=False,
      )
  
      assert alignment == 2.4 / (2 * math.sqrt(2 + 2 * 0.2**2))
      assert alignment == alignment_assume
  
imports: import math
  import sys
  from functools import partial
  import pytest
  import numpy
  import pennylane
  import pennylane.kernels
  from pennylane import numpy
label_desc: Use image node_id 4 for calling the TestKernelTargetAlignment obj's underlying member method code with example usage: obj.test_alignment_value_other_labels() without return types