AI engineering glossary · Time series recsys

What is ALS (alternating least squares)?

Alternating least squares (also called ALS): A method for matrix factorisation that alternates between fixing item vectors and solving for user vectors in closed form, then the reverse. Each step is a set of independent least-squares problems, so it parallelises well and suits implicit feedback data.

Level: advancedTopic: Time series recsys

Alternating least squares: an example

Fix the item factors, solve each user's vector; fix the user factors, solve each item's; repeat about 10 to 15 times.

Related terms

More Time series recsys terms

Where you learn it

Alternating least squares is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.