LOG.info(String.format("AdaGrad: type=%s, alpha=%5.2f, rho=%5.2f, average=%b\n", type, alpha, rho, average));
switch (type)
{
case "hinge" : return new AdaGradOnlineHingeLoss(alpha, rho, average);
case "regression": return new AdaGradOnlineLogisticRegression(alpha, rho, average);
default : throw new IllegalArgumentException("Unknown solver type: "+type);
}
}
else if (name.equals("liblinear"))
{