block by micahstubbs e110f1db857b1da87595515cacd103dc

latent value learning | scaled up

Full Screen

this iteration draws a 384px by 200px svg and scales it up to 960px wide by 500px tall with the svg viewBox attribute

an iteration on the block latent value learning | es2015 from @micahstubbs. originally inspired by the block Latent Value Learning from bricof


This is a cleaned and simplified version of a simulation / animation of latent variable learning used in the Recommendation Systems section of the Stitch Fix Algorithms Tour.

Each circle is assumed to have some latent value along the horizontal axis - some true value for an attribute that we cannot observe directly but that we can try to estimate based on feedback from attempted pair-matches involving one A element and one B element.

The algorithm used to find them is as follows:

The underlying simulation, then, is running this algorithm over a set of entities while also simulating the entities - each has its own latent value and the feedback it provides when paired with other entities is based on the actual differences between their latent values, with some noise added for good measure.

The svg update is straightforward - at each timestep, pairs are shown by lines between the circles, and the circles are transitioned to their new location based on their current estimated latent value.

index.html

animated-learning.js