Package org.apache.hama.ml.recommendation.cf.function.OnlineUpdate

Examples of org.apache.hama.ml.recommendation.cf.function.OnlineUpdate.OutputStructure


public class MeanAbsError implements OnlineUpdate.Function{
  private static final double TETTA = 0.01;
  private DoubleVector zeroVector = null;
  @Override
  public OutputStructure compute(InputStructure e) {
    OutputStructure res = new OutputStructure();

    int rank = e.user.getVector().getLength();
    if (zeroVector == null) {
      zeroVector = new DenseDoubleVector(rank, 0);
    }
View Full Code Here

TOP

Related Classes of org.apache.hama.ml.recommendation.cf.function.OnlineUpdate.OutputStructure

Copyright © 2018 www.massapicom. 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.