Package org.apache.mahout.classifier.bayes.mapreduce.common

Examples of org.apache.mahout.classifier.bayes.mapreduce.common.BayesFeatureReducer.reduce()


    Collection<StringTuple> keySet = new TreeSet<StringTuple>(cmp);
    keySet.addAll(mapperOutput.getKeys());
   
    for (StringTuple k: keySet) {
      List<DoubleWritable> v = outputData.get(k);
      reducer.reduce(k, v.iterator(), reducerOutput, Reporter.NULL);
    }

    return reducerOutput;
  }
View Full Code Here


    Collection<StringTuple> keySet = new TreeSet<StringTuple>(cmp);
    keySet.addAll(mapperOutput.getKeys());
   
    for (StringTuple k: keySet) {
      List<DoubleWritable> v = outputData.get(k);
      reducer.reduce(k, v.iterator(), reducerOutput, Reporter.NULL);
    }

    return reducerOutput;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.