Skip to content

Commit

Permalink
Fix typos (scikit-learn#9265)
Browse files Browse the repository at this point in the history
  • Loading branch information
taehoonlee authored and NelleV committed Aug 11, 2017
1 parent 9f24274 commit ac1be3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/modules/model_evaluation.rst
Expand Up @@ -6,7 +6,7 @@
Model evaluation: quantifying the quality of predictions
========================================================

There are 3 different APIs for evaluating the quality of of a model's
There are 3 different APIs for evaluating the quality of a model's
predictions:

* **Estimator score method**: Estimators have a ``score`` method providing a
Expand Down Expand Up @@ -1121,7 +1121,7 @@ predictions.
BS = \frac{1}{N} \sum_{t=1}^{N}(f_t - o_t)^2
where : :math:`N` is the total number of predictions, :math:`f_t` is the
predicted probablity of the actual outcome :math:`o_t`.
predicted probability of the actual outcome :math:`o_t`.

Here is a small example of usage of this function:::

Expand Down
8 changes: 4 additions & 4 deletions sklearn/metrics/cluster/tests/test_supervised.py
Expand Up @@ -251,14 +251,14 @@ def test_fowlkes_mallows_score_properties():
score_original = fowlkes_mallows_score(labels_a, labels_b)
assert_almost_equal(score_original, expected)

# symetric property
score_symetric = fowlkes_mallows_score(labels_b, labels_a)
assert_almost_equal(score_symetric, expected)
# symmetric property
score_symmetric = fowlkes_mallows_score(labels_b, labels_a)
assert_almost_equal(score_symmetric, expected)

# permutation property
score_permuted = fowlkes_mallows_score((labels_a + 1) % 3, labels_b)
assert_almost_equal(score_permuted, expected)

# symetric and permutation(both together)
# symmetric and permutation(both together)
score_both = fowlkes_mallows_score(labels_b, (labels_a + 2) % 3)
assert_almost_equal(score_both, expected)

0 comments on commit ac1be3d

Please sign in to comment.