lhy commited on
Commit
7c5641f
·
1 Parent(s): 4813fe4
Files changed (1) hide show
  1. hamming_loss.py +2 -2
hamming_loss.py CHANGED
@@ -42,7 +42,7 @@ Args:
42
  references: list of reference for each prediction. Each
43
  reference should be a string with tokens separated by spaces.
44
  Returns:
45
- accuracy: description of the first score,
46
  another_score: description of the second score,
47
  Examples:
48
  Examples should be written in doctest format, and should illustrate how
@@ -51,7 +51,7 @@ Examples:
51
  >>> my_new_module = evaluate.load("my_new_module")
52
  >>> results = my_new_module.compute(references=[0, 1], predictions=[0, 1])
53
  >>> print(results)
54
- {'accuracy': 1.0}
55
  """
56
 
57
  # TODO: Define external resources urls if needed
 
42
  references: list of reference for each prediction. Each
43
  reference should be a string with tokens separated by spaces.
44
  Returns:
45
+ hamming_loss: description of the first score,
46
  another_score: description of the second score,
47
  Examples:
48
  Examples should be written in doctest format, and should illustrate how
 
51
  >>> my_new_module = evaluate.load("my_new_module")
52
  >>> results = my_new_module.compute(references=[0, 1], predictions=[0, 1])
53
  >>> print(results)
54
+ {'hamming_loss': 1.0}
55
  """
56
 
57
  # TODO: Define external resources urls if needed