org.apache.mahout.math.als
Class AlternateLeastSquaresSolver

java.lang.Object
  extended by org.apache.mahout.math.als.AlternateLeastSquaresSolver

public class AlternateLeastSquaresSolver
extends Object

See this paper.


Constructor Summary
AlternateLeastSquaresSolver()
           
 
Method Summary
protected  Matrix addLambdaTimesNuiTimesE(Matrix matrix, double lambda, int nui)
           
protected  Matrix createMiIi(List<Vector> featureVectors, int numFeatures)
           
protected  Matrix createRiIiMaybeTransposed(Vector ratingVector)
           
 Vector solve(List<Vector> featureVectors, Vector ratingVector, double lambda, int numFeatures)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlternateLeastSquaresSolver

public AlternateLeastSquaresSolver()
Method Detail

solve

public Vector solve(List<Vector> featureVectors,
                    Vector ratingVector,
                    double lambda,
                    int numFeatures)

addLambdaTimesNuiTimesE

protected Matrix addLambdaTimesNuiTimesE(Matrix matrix,
                                         double lambda,
                                         int nui)

createMiIi

protected Matrix createMiIi(List<Vector> featureVectors,
                            int numFeatures)

createRiIiMaybeTransposed

protected Matrix createRiIiMaybeTransposed(Vector ratingVector)


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.