@@ -0,0 +1,1296 @@
+package edu.ntnu.idi.goldfish;%0A%0Aimport org.apache.mahout.cf.taste.common.TasteException;%0Aimport org.apache.mahout.cf.taste.impl.recommender.svd.Factorizer;%0Aimport org.apache.mahout.cf.taste.model.DataModel;%0A%0Aimport edu.ntnu.idi.goldfish.mahout.LynxFactorizer;%0A%0Apublic class Lynx extends MatrixFactorization %7B%0A%0A%09double lambda;%0A%09private double mu0;%0A%09private double decayFactor;%0A%09private int stepOffset;%0A%09private double forgettingExponent;%0A%09private double biasMuRatio;%0A%09private double biasLambdaRatio;%0A%09%0A%09public Lynx(int topN, int numFeatures, int numIterations, double lambda, double mu0, double decayFactor, int stepOffset, double forgettingExponent, double biasMuRatio, double biasLambdaRatio) %7B%0A%09%09super(topN, numFeatures, numIterations);%0A%09%09this.lambda = lambda;%0A%09%09this.mu0 = mu0;%0A%09%09this.decayFactor = decayFactor;%0A%09%09this.stepOffset = stepOffset;%0A%09%09this.forgettingExponent = forgettingExponent;%0A%09%09this.biasMuRatio = biasMuRatio;%0A%09%09this.biasLambdaRatio = biasLambdaRatio;%0A%09%7D%0A%0A%09@Override%0A%09public Factorizer getFactorizer(DataModel dataModel) throws TasteException %7B%0A%09%09return new LynxFactorizer(dataModel, (int) KTL, lambda, numIterations, mu0, decayFactor, stepOffset, forgettingExponent, biasMuRatio, biasLambdaRatio);%0A%09%7D%0A%09%0A%09public String toString() %7B%0A%09%09return String.format(%22ParallelSGD%22);%0A%09%7D%0A%0A%7D%0A

Add Lynx recommender.