Map of Natural Numbers in 3D
HTML-код
- Опубликовано: 10 ноя 2023
- Generating a Map of Natural Numbers and its 3D Renderer using the UMAP dimensionality reduction algorithm in Python and OpenGL.
Inspired by:
johnhw.github.io/umap_primes/...
Source Code:
github.com/StanislavPetrovV/3...
#coderspace #umap #opengl #python
I wonder, what it will look like if the colors would be represented as three more domensions
I wonder, what it will look like if you make it four dimensions and using time animation as fourth dimension.
your videos never cease to amaze and inspire, thank you for creating and sharing!
Wow! These visuals are pretty inspiring!
This is some great great work. Bravo!
Simply stunning!
Bravo, standalone coder
Cool visualization ❤
This is incredible... I was exploring the possibility of numbers being "beings", with specific characteristics that make them cluster accordingly - there can be a relation between them that we cannot perceive with our 2D chalk-wall... This is what I was looking for. So glad I found this video! Really amazing job, man.......
Good Job Stanislav !
This is crazy cool
That's cool I'm wondering why odd and even numbers draw these closed figures, and why even numbers tend to look circular more than the odds
I would like to know that, too.
This is so cool :) Could you elaborate more on UBOs and SSBO's? I've been trying to improve performance in my own code and they seem to be good candidate solutions. Please, keep these videos coming mate! You are combining the accessability of Python with the power of 3D graphics in a way not many, if any, have done before on RUclips. A new generation of graphics and ML enthusiasts will come from this channel alone :D
You are a genius, thanks for sharing your beautiful creation
this is just amazing. so beautiful and so intelligent.
check out my new video on my paper which presents the sieve of eratosthenes in the complex plane if you want to see some insanely new prime functions:
ruclips.net/video/isIrG7h9FYw/видео.html
This is one of the coolest things I've ever seen.
What a time to be alive!
Красота математики!!!
Beautiful visualization. I wonder what it would look like if you took the 6th dimension data and represented the last three components as color values.
Beautiful.
The primes are just leftovers. You cannot pinpoint a specific prime number (too large to be discovered yet) without getting there by basic iterative steps. We can only guess roughly how many primes are in a certain interval of natural numbers.
So good!
you have to add a crosshair and display number under it in a corner of the screen with properties (prime divisors)
you are the best. keep going
Awesome! your stuff is always interesting. Seeing this in 4D would be fascinating... 3D slices of this little cosmos... (Have you changed your IDE theme? What is this one? It's gorgeous!)
Edit: also I noticed, I'm curious about the reason for your trailing underscore naming convention!
Thanks. The IDE theme is the same, except I changed a few colors slightly to suit me.
I use underscore just to make the names of the arguments different from the outer scope names
@@CoderSpaceChannel ahh I see! Thanks
Awesome!
Geometry = Numbers in space.
I wonder what tranformations you'd need to align this with the n dimensional model that natural language forms?
Please tell us more about which numbers end up in which structures and why
First of all, hats off. This is just brilliant!
Secondly, I am wondering ... UMAP can be run in supervised mode. That means that you could label e.g. the prime numbers as '0', and the rest as '1'.
Assuming prime numbers will cluster efficiently, then, you could see if projecting a new test point (number) in the map, and see where it falls (in the primes cluster or elsewhere?).
What I want to get is: can this be used to easily find prime numbers? Because that would be HUGE.
UMAP has many settings, but they all seem to be related only to dimensionality reduction. But I like your idea! By the way, there is a UMAP implementation for the GPU available in the NVIDIA RAPIDS cuML library, maybe there is something interesting there.
@@CoderSpaceChannel After thinking more on my own statement, the only drawback would be to represent the numbers in an other way other than factorizing on prime numbers, or else prime number discovery is by default impossible. But I assume one could just perform any other compact factorization, e.g. representation on base 16, or even more. I may try this as soon as I have some spare time ....
@@CoderSpaceChannel I started playing with the idea, using PCA instead of UMAP (and a not optimized code such as yours)... Is there any way I can send you the jupyter notebook? Like, a mail contact via this channel or ... Not pushing man, only if you have time!
Hey, can you do a tutorial on physics with opengl and python
Its amazing
Honestly inspiring, I love it! Also, why not reduce to 6 dimensions and have the additional 3 map onto HSV? A 7th dimension could be used to make an animation over time. I bet there would be some interesting structure there
Awesome
We need more videos
amazing
please create a ultimate ursina tutorial and thank you for this video
Can you write a Might and Magic 6 Mandate of Heaven style game in Python? Idea for the project in the next video :)
You know what father likes too see. Cool interesting and puzzling things 😂😂 ty babies
👍
why don't you have millions of subs???????
CAn u teach us how to make a cool fps game like with good graphics and u deserve a sub
Не, натуральные числа это деревья (графы), где листья это простые числа, например 2*3^(5*11)*5*7 =) круто было б такую если визуализацию кто-то сделал...
Точнее все узлы - простые числа
Why isn't multiplicity accounted for? The vector of 12 should be 2, 1, 0, ... instead of 1, 1, ... because 12 = 2² * 3¹.
You mean arrays ?
pygame 2.5.2 (SDL 2.28.2, Python 3.10.12) ->
WIN_RES = glm.ivec2(1280, 720)
AttributeError: module 'glm' has no attribute 'ivec2'
reinstall PyGLM
@@CoderSpaceChannel pip install --force-reinstall --no-cache-dir umap-learn scipy pygame moderngl PyGLM
[...]
Successfully installed PyGLM-2.7.1 glcontext-2.5.0 joblib-1.3.2 llvmlite-0.41.1 moderngl-5.8.2 numba-0.58.1 numpy-1.26.1 pygame-2.5.2 pynndescent-0.5.10 scikit-learn-1.3.2 scipy-1.11.3 tbb-2021.10.0 threadpoolctl-3.2.0 tqdm-4.66.1 umap-learn-0.5.4
Sorry. No avail, same error. Ubuntu 22.04.1 😕 Your other Git code always worked OK for me.
can you make a voxel engine with collisions?
wow I'm early
Чето подобное я видел у onigiri
он такое с комментами с ютуба делал
wwowwwwwwwwww
use some other methods and maybe display all of them
great video!