Created
November 8, 2015 22:50
-
-
Save szalai1/bc90fe210c62a3dbb6d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model->userFactors->linCombine(recDat->user,-gradient*learningRate, model->itemFactors->get(recDat->item)); | |
if (regularizationRate>0) { | |
model->itemFactors->linCombine(recDat->item,-regularizationRate*learningRate, model->itemFactors->get(recDat->item)); | |
} | |
model->itemFactors->linCombine(recDat->item,-gradient*learningRate, &(model->tmpUserFactor)); | |
if (regularizationRate>0) { | |
model->userFactors->linCombine(recDat->user,-regularizationRate*learningRate, &model->tmpUserFactor); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment