Skip to content

Commit

Permalink
use custom latex operator
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf authored and vigsterkr committed Mar 10, 2016
1 parent 26ab712 commit c0e8f9c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/sphinx/source/examples/classifier/knn.rst
@@ -1,8 +1,10 @@
==================
Nearest neighbours
==================
====================
K Nearest neighbours
====================

Since Pythagoras, we know that :math:`a^2 + b^2 = c^2`. Use that for KNN.
KNN classifies data according to the majority of labels in the nearest neighbourhood, according to some underlying distance function :math:`d(x,x')`.

For :math:`k=1`, the label for point :math:`x_i` is :math:`y_{k^*}`, where :math:`k^*=\argmin_n d(x_i, x_n)`.

-------
Example
Expand Down

0 comments on commit c0e8f9c

Please sign in to comment.