AbstractLiblinear algorithm = null;
switch (solver)
{
case AbstractAlgorithm.SOLVER_LIBLINEAR_LR2_L1_SVC:
algorithm = new LiblinearL2SVC((byte)1, cost, eps, bias); break;
case AbstractAlgorithm.SOLVER_LIBLINEAR_LR2_L2_SVC:
algorithm = new LiblinearL2SVC((byte)2, cost, eps, bias); break;
case AbstractAlgorithm.SOLVER_LIBLINEAR_LR2_LR:
algorithm = new LiblinearL2LR(cost, eps, bias); break;
}
new OneVsAllTrainer(space, algorithm, numThreads);