package edu.neu.ccs.pyramid.multilabel_classification;

import edu.neu.ccs.pyramid.dataset.FeatureRow;
import edu.neu.ccs.pyramid.dataset.MultiLabel;
import edu.neu.ccs.pyramid.dataset.MultiLabelClfDataSet;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

/**
 * Created by chengli on 9/27/14.
 */
public interface MultiLabelClassifier {
    MultiLabel predict(FeatureRow featureRow);
    default List<MultiLabel> predict(MultiLabelClfDataSet dataSet){
        return IntStream.range(0,dataSet.getNumDataPoints())
                .mapToObj(i -> predict(dataSet.getFeatureRow(i)))
                .collect(Collectors.toList());
    }

}

@@ -553,16 +553,27 @@
 oints())
+.parallel()
 %0A       

make predict parallel