org.apache.mahout.cf.taste.impl.recommender.svd
Class ImplicitLinearRegressionFactorizer
java.lang.Object
org.apache.mahout.cf.taste.impl.recommender.svd.AbstractFactorizer
org.apache.mahout.cf.taste.impl.recommender.svd.ImplicitLinearRegressionFactorizer
- All Implemented Interfaces:
- Refreshable, Factorizer
public final class ImplicitLinearRegressionFactorizer
- extends AbstractFactorizer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImplicitLinearRegressionFactorizer
public ImplicitLinearRegressionFactorizer(DataModel dataModel)
throws TasteException
- Throws:
TasteException
ImplicitLinearRegressionFactorizer
public ImplicitLinearRegressionFactorizer(DataModel dataModel,
int numFeatures,
int numIterations,
double preventOverfitting)
throws TasteException
- Throws:
TasteException
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.