Skip to content

Commit

Permalink
Correct the equations in comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed May 7, 2012
1 parent 01dff0d commit 876d4b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shogun/multiclass/ecoc/ECOCRandomSparseEncoder.h
Expand Up @@ -27,11 +27,11 @@ namespace shogun
* 2. random sample and assign values to the rest of the code positions
*
* In this way, we guarantee that both +1 and -1 are present in the code. However, the effective probability
* is changed to Q, where
* is changed to Q. Assume number of classes is K, then
*
* * Q(0) = 0.5*P(0)
* * Q(+1) = 0.25 + 0.5*P(+1)
* * Q(-1) = 0.25 + 0.5*P(-1)
* * Q(0) = (K-2)/K * P(0)
* * Q(+1) = 1/K + (K-2)/K * P(+1)
* * Q(-1) = 1/K + (K-2)/K * P(-1)
*/
class CECOCRandomSparseEncoder: public CECOCEncoder
{
Expand Down

0 comments on commit 876d4b2

Please sign in to comment.