Examples of EntriesToVectorsReducer


Examples of org.apache.mahout.math.hadoop.similarity.RowSimilarityJob.EntriesToVectorsReducer

    context.write(EasyMock.eq(new IntWritable(12)), MathHelper.vectorMatches(MathHelper.elem(34, 0.8)));

    EasyMock.replay(context);

    EntriesToVectorsReducer reducer = new EntriesToVectorsReducer();
    setField(reducer, "maxSimilaritiesPerRow", 1);

    reducer.reduce(new SimilarityMatrixEntryKey(12, 1.0), Arrays.asList(
        MathHelper.matrixEntry(12, 34, 0.8),
        MathHelper.matrixEntry(12, 56, 0.7)), context);

    EasyMock.verify(context);
View Full Code Here

Examples of org.apache.mahout.math.hadoop.similarity.RowSimilarityJob.EntriesToVectorsReducer

    context.write(EasyMock.eq(new IntWritable(12)), MathHelper.vectorMatches(MathHelper.elem(34, 0.8)));

    EasyMock.replay(context);

    EntriesToVectorsReducer reducer = new EntriesToVectorsReducer();
    setField(reducer, "maxSimilaritiesPerRow", 1);

    reducer.reduce(new SimilarityMatrixEntryKey(12, 1.0), Arrays.asList(
        MathHelper.matrixEntry(12, 34, 0.8),
        MathHelper.matrixEntry(12, 56, 0.7)), context);

    EasyMock.verify(context);
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.