File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change @@ -1880,7 +1880,7 @@ In multilabel classification, the :func:`zero_one_loss` scores a subset as
1880
1880
one if its labels strictly match the predictions, and as a zero if there
1881
1881
are any errors. By default, the function returns the percentage of imperfectly
1882
1882
predicted subsets. To get the count of such subsets instead, set
1883
- ``normalize `` to ``False ``
1883
+ ``normalize `` to ``False ``.
1884
1884
1885
1885
If :math: `\hat {y}_i` is the predicted value of
1886
1886
the :math: `i`-th sample and :math: `y_i` is the corresponding true value,
@@ -1891,8 +1891,8 @@ then the 0-1 loss :math:`L_{0-1}` is defined as:
1891
1891
L_{0 -1 }(y, \hat {y}) = \frac {1 }{n_\text {samples}} \sum _{i=0 }^{n_\text {samples}-1 } 1 (\hat {y}_i \not = y_i)
1892
1892
1893
1893
where :math: `1 (x)` is the `indicator function
1894
- <https://en.wikipedia.org/wiki/Indicator_function> `_. The zero one
1895
- loss can also be computed as :math: `zero-one loss = 1 - accuracy`.
1894
+ <https://en.wikipedia.org/wiki/Indicator_function> `_. The zero- one
1895
+ loss can also be computed as :math: `\text { zero-one loss} = 1 - \text { accuracy} `.
1896
1896
1897
1897
1898
1898
>>> from sklearn.metrics import zero_one_loss
You can’t perform that action at this time.
0 commit comments