@@ -0,0 +1,1214 @@
+package edu.neu.ccs.pyramid.experiment;%0A%0Aimport edu.neu.ccs.pyramid.configuration.Config;%0Aimport edu.neu.ccs.pyramid.dataset.*;%0A%0Aimport java.util.HashSet;%0Aimport java.util.List;%0Aimport java.util.Set;%0Aimport java.util.stream.IntStream;%0A%0A/**%0A * Created by chengli on 1/1/16.%0A */%0Apublic class Exp140 %7B%0A    public static void main(String%5B%5D args) throws Exception%7B%0A        if (args.length != 1) %7B%0A            throw new IllegalArgumentException(%22Please specify a properties file.%22);%0A        %7D%0A%0A        Config config = new Config(args%5B0%5D);%0A%0A        System.out.println(config);%0A        MultiLabelClfDataSet trainSet = TRECFormat.loadMultiLabelClfDataSet(config.getString(%22input.trainData%22), DataSetType.ML_CLF_SPARSE, true);%0A        MultiLabelClfDataSet testSet = TRECFormat.loadMultiLabelClfDataSet(config.getString(%22input.testData%22), DataSetType.ML_CLF_SPARSE, true);%0A        List%3CMultiLabel%3E list = DataSetUtil.gatherMultiLabels(trainSet);%0A        Set%3CMultiLabel%3E set = new HashSet%3C%3E();%0A        set.addAll(list);%0A%0A        long count = IntStream.range(0,testSet.getNumDataPoints()).filter(i-%3Eset.contains(testSet.getMultiLabels()%5Bi%5D)).count();%0A        System.out.println(count*1.0/testSet.getNumDataPoints());%0A%0A%0A    %7D%0A%7D%0A

add Exp140