Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #502 from pluskid/ecoc-random-sparse
Correct the equations in comment.
  • Loading branch information
Soeren Sonnenburg committed May 7, 2012
2 parents 5238cb0 + 876d4b2 commit ae429c4
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 ae429c4

Please sign in to comment.