Live data from Hacker News

What do numbers look like?

johnhw.github.io

31–40 of 55 posts

Re: What do numbers look like?

#31
post #9

This is one of the most beautiful things I have seen in 2022 on the Internet, and there were some very good contenders. This provokes in me an immediate sense of beauty, and I'm compelled to read and understand as much of it as I can. Thanks for sharing this, I'm fascinated and amazed.

Sadly merely artifacts .

What about the section that shows how dull random numbers are?

Re: What do numbers look like?

#32
post #11

Earlier quoted context omitted.

Convert numbers to a vector space represented by their prime factors: 2 => [1 0 0 0...] 3 => [0 1 0 0...] 4 => [1 0 0 0...] And map that high dimensional space back down to two dimensions (using some technique I haven't dug into yet). Colors are assigned by some scheme, later images help to illustrate how the particular clusterings happen like one where primes are rendered in white.

ahem .... explain like I am 0.5

Numbers are placed in an image according to their prime numbers

Re: What do numbers look like?

#34

Earlier quoted context omitted.

Convert numbers to a vector space represented by their prime factors: 2 => [1 0 0 0...] 3 => [0 1 0 0...] 4 => [1 0 0 0...] And map that high dimensional space back down to two dimensions (using some technique I haven't dug into yet). Colors are assigned by some scheme, later images help to illustrate how the particular clusterings happen like one where primes are rendered in white.

2 and 4 are mapped to the same vector?

Yes. I wondered about that, too.

Re: What do numbers look like?

#35
post #9

This is one of the most beautiful things I have seen in 2022 on the Internet, and there were some very good contenders. This provokes in me an immediate sense of beauty, and I'm compelled to read and understand as much of it as I can. Thanks for sharing this, I'm fascinated and amazed.

Sadly merely artifacts .

Artifacts are a natural state of our universe

Re: What do numbers look like?

#36
post #11

Earlier quoted context omitted.

Convert numbers to a vector space represented by their prime factors: 2 => [1 0 0 0...] 3 => [0 1 0 0...] 4 => [1 0 0 0...] And map that high dimensional space back down to two dimensions (using some technique I haven't dug into yet). Colors are assigned by some scheme, later images help to illustrate how the particular clusterings happen like one where primes are rendered in white.

ahem .... explain like I am 0.5

This isn’t exactly it, but roughly: Make a vector space with primes as a basis (instead of “x, y, z,…” use “2, 3, 5, …”). For a number, find its prime factors. Make a vector and set elements corresponding to the prime factors of the number equal to 1. Apply some algorithm to map a high-dimensional (more than 2 elements) vector into a two dimensional image where color has some significance.

Re: What do numbers look like?

#37

According to Dmitry Kobak, some details in these figures are merely convergence artifacts, and no longer produced when using more recent versions of UMAP. https://twitter.com/hippopedoid/status/1318917878364672001?l...

Beware that the first tweet uses t-SNE, which is an older algorithm that UMAP tries to improve. There's also an image with a newer version of UMAP further down and while the big squiggly line artifacts are reduced, a lot of the structure remains and it looks much less like the random numbers image from the blog or the t-SNE version. Still, I think it's safe to say that any fancy structure here is more likely a result…

I think the point of using t-SNE was to suggest that if the structure were legitimate that t-SNE would find at least some of it.

This is both an interesting/fun visualization exercise and a cautionary story. Apparently UMAP has a tendency to render blobs as rings or loops!

Re: What do numbers look like?

#38
post #27
post #22

Earlier quoted context omitted.

It tells about the factorizations if anything, as that's the input dimensions they are using. If you haven't seen factorization diagrams, it's worth checking them out first: https://mathlesstraveled.com/factorization/ But visualisations can always deceive you into seeing something that's not there, e.g. correlation vs causation.

Uh… what does it have to do with these "factorization diagrams"? Maybe I'm missing something, but I don't even see why are they "worth checking out". As far as I can see following your link, these are just arranging a number of dots into (pre-determined) shapes that are humanly recognizable. I.e., these are literally just some caveman technologies for writing a number before a more convenient (i.e. arabic) number sys…

It's the same because both are visualizations of prime factorizations. And if you check out the Twitter thread posted in the comments here, you'll see that the "loops" are probably convergence artifacts (they should just be blobs) and that the clusters seem to correspond to the number of prime factors and the largest prime factor: https://twitter.com/hippopedoid/status/1318917905736716288, which makes sense because those are the input features to the algorithm.

Re: What do numbers look like?

#39
post #30
post #20

I wonder why it was chosen to represent everything, well, not unit vectors, but nothing higher than 1. Why should 2 and 4 both be [1 0 ...] instead of [2 0 ...], etc?

It might have to do with UMAP making dot products and assumptions about the inputs. If everything is 0s and 1s, the vectors will have a normal distribution of magnitudes (more or less). Otherwise the magnitudes will just explode and I don’t think UMAP will work.

It's also very common in general to use this "one-hot encoding" in statistics and machine learning.

In many cases using all 2s or all -10s would produce the exact same result in theory, but with more work by the optimizing algorithm, possibly with adverse results as described above.

It's easy to reason about mathematically, too. If the input vector is all 1s and 0s, it's easy to read off the result of multiplying that vector with another vector. Norms of binary vectors and dot products between binary vectors are super-easy, and have a nice correspondence with counting the appearances of elements.

It also corresponds to an array of Boolean values which is conceptually appealing, because that's basically how it's constructed.

With a couple of specific exceptions, there's little reason not to use all 1s.

Re: What do numbers look like?

#40
post #9

This is one of the most beautiful things I have seen in 2022 on the Internet, and there were some very good contenders. This provokes in me an immediate sense of beauty, and I'm compelled to read and understand as much of it as I can. Thanks for sharing this, I'm fascinated and amazed.

Sadly merely artifacts .

I still think the t-SNE blobs are beautiful and interesting!
Post reply on HN