class_docstr: Test class for metrics tests.
class_docstr_tok: ["Test","class","for","metrics","tests","."]
code: def check_f05_metrics(self, metric_name, average_method):
      y_true = [1, 1, 1, 0, 0, 0]
      y_pred = [0, 1, 1, 1, 0, 0]
      skll_value = use_score_func(metric_name, y_true, y_pred)
      sklearn_value = fbeta_score(
          y_true, y_pred, beta=0.5, average=average_method
      )
      self.assertEqual(skll_value, sklearn_value)
  
file_path: skll/tests/test_metrics.py
imports: import unittest
  from pathlib import Path
  from numpy.testing import assert_almost_equal
  from sklearn.metrics import fbeta_score
  from skll.metrics import kappa, use_score_func
  from skll.utils.testing import output_dir, test_dir, train_dir
label_desc: Use image node_id 9 for calling the TestMetrics obj's underlying member method code with example usage: obj.check_f05_metrics(metric_name, average_method) without return types