A common beginner mistake is to misunderstand the meaning of the term "interpolation" in machine learning.
Let's take a look 


-
Show this thread
-
Some people think it always refers to linear interpolation -- for instance, interpolating images in pixel space. In reality, it means interpolating *on a learned approximation of the latent manifold of the data*. That's a very different beast!
2 replies 13 retweets 193 likesShow this thread -
Let's start with a very basic example. Consider MNIST digits. Linearly interpolating between 2 MNIST samples does not produce a MNIST sample, but blurry images: pixel space is not linearly interpolative for digits!pic.twitter.com/JTjGGqwHjr
1 reply 14 retweets 159 likesShow this thread -
However, if you interpolate between two digits *on the latent manifold of the MNIST data*, the mid-point between two digits still lies on the manifold of the data, i.e. it's still a plausible digit.
3 replies 6 retweets 97 likesShow this thread -
Here's a very simple way to visualize what's going on, in the trivial case of a 2D encoding space and a 1D latent manifold. For typical ML problems, the encoding space has millions of dimensions and the latent manifold has 2D-1000D (could be anything really).pic.twitter.com/nxTU6BJCbA
2 replies 14 retweets 149 likesShow this thread -
But wait, what does that really mean? What's a "manifold"? What does "latent" mean? How do you learn to interpolate on a latent manifold?
2 replies 4 retweets 69 likesShow this thread -
Let's dive deeper. But first: if you want to understand these ideas in-depth in a better format than a Twitter thread, grab your copy of Deep Learning with Python, 2nd edition, and read chapter 5 ("fundamentals of ML"). It covers all of this in detail.https://www.manning.com/books/deep-learning-with-python-second-edition?a_aid=keras&a_bid=76564dff …
3 replies 20 retweets 231 likesShow this thread -
Shipping in 10 days! It's been at the printer for the past 1.5 weeks.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

