double cost = Double.parseDouble(UTXml.getTrimmedAttribute(eAlgorithm, "cost"));
double eps = Double.parseDouble(UTXml.getTrimmedAttribute(eAlgorithm, "eps"));
switch (type)
{
case "hinge" : return new LiblinearHingeLoss(cost, eps);
// case "logistic": return ;
default : throw new IllegalArgumentException("Unknown solver type: "+type);
}
}