Package org.apache.mahout.clustering.spectral.common.MatrixDiagonalizeJob

Examples of org.apache.mahout.clustering.spectral.common.MatrixDiagonalizeJob.MatrixDiagonalizeReducer.reduce()


    Reducer<NullWritable, IntDoublePairWritable, NullWritable, VectorWritable>.Context
      redContext = DummyRecordWriter.build(reducer, conf, redWriter,
      NullWritable.class, IntDoublePairWritable.class);
   
    // only need one reduction
    reducer.reduce(NullWritable.get(), mapWriter.getValue(NullWritable.get()), redContext);
   
    // first, make sure there's only one result
    List<VectorWritable> list = redWriter.getValue(NullWritable.get());
    assertEquals("Only a single resulting vector", 1, list.size());
    Vector v = list.get(0).get();
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.