class_docstr: Test indicators.
docstr: Test constructing an indicator.
docstr_tok: ["Test","constructing","an","indicator","."]
code: def test_indicator(self):
      """Test constructing an indicator."""
      y_score = np.array([5, 6, 7, 8])
      y_true = np.array([1, 0, 0, 1])
      self.assertEqual(
          [0, 0, 1, 1],
          construct_indicator(y_score=y_score, y_true=y_true).tolist(),
      )
  
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 1 for calling the TestIndicators obj's underlying member method code with example usage: obj.test_indicator() without return types