static public AbstractAdaGrad getAlgorithm(byte solver, double alpha, double rho, double eps)
{
switch (solver)
{
case AbstractAlgorithm.SOLVER_ADAGRAD_HINGE:
return new AdaGradHinge(alpha, rho, eps);
case AbstractAlgorithm.SOLVER_ADAGRAD_LR:
return new AdaGradLR(alpha, rho, eps);
}
return null;