mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myn <>
Subject why limit the num of numCategories in AbstractOnlineLogisticRegression
Date Sun, 28 Aug 2011 15:49:19 GMT
I was read the AbstractOnlineLogisticRegression(SGD) sorce code  ,but
it limit the number of numCategories to 2,why? why not 3 or more?

  public double classifyScalar(Vector instance) {
    Preconditions.checkArgument(numCategories() == 2, "Can only call classifyScalar with two

    // apply pending regularization to whichever coefficients matter

    // result is a vector with one element so we can just use dot product
    return link(classifyScalarNoLink(instance));

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message