@@ -0,0 +1,1155 @@
+package edu.neu.ccs.pyramid.experiment;%0A%0Aimport edu.neu.ccs.pyramid.configuration.Config;%0Aimport mltk.core.Instances;%0Aimport mltk.core.io.InstancesReader;%0Aimport mltk.predictor.Learner;%0Aimport mltk.predictor.glm.LassoLearner;%0A%0Aimport java.io.File;%0A%0A/**%0A * Lasso logistic regression for%0A * Created by chengli on 11/11/14.%0A */%0Apublic class Exp20 %7B%0A    public static void main(String%5B%5D args) %7B%0A        if (args.length !=1)%7B%0A            throw new IllegalArgumentException(%22please specify the config file%22);%0A        %7D%0A%0A        Config config = new Config(args%5B0%5D);%0A        System.out.println(config);%0A%0A    %7D%0A%0A    private static void train(Config config) throws Exception%7B%0A        String trainFile = new File(config.getString(%22input.folder%22),%0A                config.getString(%22input.trainData%22)).getAbsolutePath();%0A        Instances trainSet = InstancesReader.read(null,trainFile);%0A        LassoLearner learner = new LassoLearner();%0A        learner.setTask(Learner.Task.CLASSIFICATION);%0A        learner.setMaxNumIters(config.getInt(%22train.numIterations%22));%0A        learner.setVerbose(false);%0A        learner.setLambda(config.getDouble(%22train.lambda%22));%0A%0A    %7D%0A%7D%0A

add Exp20