SGD-based matrix factorization

Now we are finally ready to implement the matrix factorization model in TensorFlow. Let us do this and see if we can improve the baseline by implicit. Implementing ALS in TensorFlow is not an easy task: it is better suited for gradient-based methods such as SGD. This is why we will do exactly that, and leave ALS to specialized implementations.

Here we implement the formula from the previous sections:

.

Recall that the objective there was the following:

Note that in this objective we still have the squared error, ...

Get TensorFlow Deep Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.