Skip to content

Commit

Permalink
Merge pull request #3049 from F0Z/develop
Browse files Browse the repository at this point in the history
Fixed latex
  • Loading branch information
lisitsyn committed Mar 9, 2016
2 parents f588ba4 + 9c8d1f8 commit aac5006
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/shogun/multiclass/KNN.h
Expand Up @@ -34,13 +34,16 @@ class CDistanceMachine;
* k closest examples belong to. Formally, kNN is described as
*
* \f[
* label for x = \arg \max_{l} \sum_{i=1}^{k} [label of i-th example = l]
* y_{x} = \arg \max_{l} \sum_{i=1}^{k} I[y_{i} = l],
* \f]
*
* where \f$y_{m}\f$ denotes the label of the \f$m^{th}\f$ example, and the
* indicator function \f$I[a = b]\f$ equals 1 if a = b and zero otherwise.
*
* This class provides a capability to do weighted classfication using:
*
* \f[
* label for x = \arg \max_{l} \sum_{i=1}^{k} [label of i-th example = l] q^{i},
* y_{x} = \arg \max_{l} \sum_{i=1}^{k} I[y_{i} = l] q^{i},
* \f]
*
* where \f$|q|<1\f$.
Expand Down

0 comments on commit aac5006

Please sign in to comment.