class_docstr: Test indicators.
docstr: Test that the construction of the indicator is invariant to linear transformations.
docstr_tok: ["Test","that","the","construction","of","the","indicator","is","invariant","to","linear","transformations","."]
code: def test_indicator_linear_invariant(self):
      """Test that the construction of the indicator is invariant to linear transformations."""
      y_true = get_true()
      for m, b in [
          # (-1, 1),
          (1, 1),
          # (-1, -1),
          (1, -1),
          (5, 3),
          # (-5, -3),
      ]:
          with self.subTest(m=m, b=b):
              y_score = y_true * m + b
              indicator = construct_indicator(
                  y_score=y_score, y_true=y_true
              )
              self.assertTrue(
                  (indicator == y_true).all(), msg=f"{m}x + {b}"
              )
  
file_path: pykeen/tests/test_evaluation/test_utils.py
imports: import unittest
  import numpy
  from pykeen.metrics.classification import construct_indicator
label_desc: Use image node_id 2 for calling the TestIndicators obj's underlying member method code with example usage: obj.test_indicator_linear_invariant() without return types