org.apache.mahout.cf.taste.impl.recommender.svd
Class ImplicitLinearRegressionFactorizer

java.lang.Object
  extended by org.apache.mahout.cf.taste.impl.recommender.svd.AbstractFactorizer
      extended by org.apache.mahout.cf.taste.impl.recommender.svd.ImplicitLinearRegressionFactorizer
All Implemented Interfaces:
Refreshable, Factorizer

public final class ImplicitLinearRegressionFactorizer
extends AbstractFactorizer


Constructor Summary
ImplicitLinearRegressionFactorizer(DataModel dataModel)
           
ImplicitLinearRegressionFactorizer(DataModel dataModel, int numFeatures, int numIterations, double preventOverfitting)
           
 
Method Summary
 void buildCallables(Matrix C, Matrix prefVector, int id)
           
 Matrix buildPreferenceVectorForUser(long realId)
           
 Factorization factorize()
           
 void finishProcessing()
           
 Matrix identityV(int size)
           
 void reCalculateTrans(boolean recomputeUserFeatures)
          Recalculating Y^TY or X^TX which is needed for further calculations
 void resetCallables()
           
 void train()
           
 
Methods inherited from class org.apache.mahout.cf.taste.impl.recommender.svd.AbstractFactorizer
createFactorization, itemIndex, refresh, userIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplicitLinearRegressionFactorizer

public ImplicitLinearRegressionFactorizer(DataModel dataModel)
                                   throws TasteException
Throws:
TasteException

ImplicitLinearRegressionFactorizer

public ImplicitLinearRegressionFactorizer(DataModel dataModel,
                                          int numFeatures,
                                          int numIterations,
                                          double preventOverfitting)
                                   throws TasteException
Throws:
TasteException
Method Detail

factorize

public Factorization factorize()
                        throws TasteException
Throws:
TasteException

train

public void train()
           throws TasteException
Throws:
TasteException

buildPreferenceVectorForUser

public Matrix buildPreferenceVectorForUser(long realId)
                                    throws TasteException
Throws:
TasteException

reCalculateTrans

public void reCalculateTrans(boolean recomputeUserFeatures)
Recalculating Y^TY or X^TX which is needed for further calculations

Parameters:
recomputeUserFeatures -

resetCallables

public void resetCallables()

buildCallables

public void buildCallables(Matrix C,
                           Matrix prefVector,
                           int id)
                    throws TasteException
Throws:
TasteException

finishProcessing

public void finishProcessing()
                      throws TasteException
Throws:
TasteException

identityV

public Matrix identityV(int size)


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