146147148149150151152153154155156
} AbstractModel model = space.getModel(); model.initWeightVector(); algorithm.train(space); return model; } static public void main(String[] args)
143144145146147148149150151152153
algorithm = new AdaGradHinge(alpha, rho, eps); break; case AbstractAlgorithm.SOLVER_ADAGRAD_LR: algorithm = new AdaGradLR(alpha, rho, eps); break; } algorithm.train(space); return space.getModel(); } static public void main(String[] args) {