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

Комментарии • 62

  • @InfiniteCoder01
    @InfiniteCoder01 7 месяцев назад +16

    I wonder, what it will look like if the colors would be represented as three more domensions

    • @OpenGL4ever
      @OpenGL4ever 3 месяца назад +1

      I wonder, what it will look like if you make it four dimensions and using time animation as fourth dimension.

  • @jeffcummings3842
    @jeffcummings3842 7 месяцев назад +1

    your videos never cease to amaze and inspire, thank you for creating and sharing!

  • @azaias
    @azaias 7 месяцев назад +2

    Wow! These visuals are pretty inspiring!

  • @elorating
    @elorating 7 месяцев назад +1

    This is some great great work. Bravo!

  • @OudinAlex
    @OudinAlex 7 месяцев назад

    Simply stunning!

  • @looking8994
    @looking8994 6 месяцев назад +2

    Bravo, standalone coder

  • @dclxviclan
    @dclxviclan 7 месяцев назад +2

    Cool visualization ❤

  • @cristianocenta2624
    @cristianocenta2624 2 месяца назад

    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.......

  • @andrzejsiebieranski7239
    @andrzejsiebieranski7239 7 месяцев назад

    Good Job Stanislav !

  • @simondev758
    @simondev758 7 месяцев назад +2

    This is crazy cool

  • @DBo-iv9qv
    @DBo-iv9qv 6 месяцев назад +3

    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

    • @OpenGL4ever
      @OpenGL4ever 3 месяца назад

      I would like to know that, too.

  • @alexandrepv
    @alexandrepv 6 месяцев назад +1

    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

  • @alvarocubi
    @alvarocubi 7 месяцев назад +1

    You are a genius, thanks for sharing your beautiful creation

  • @BORCHLEO
    @BORCHLEO 4 месяца назад

    this is just amazing. so beautiful and so intelligent.

    • @BORCHLEO
      @BORCHLEO 4 месяца назад +2

      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

  • @pmlbeirao
    @pmlbeirao 6 месяцев назад +1

    This is one of the coolest things I've ever seen.

  • @griffinschreiber6867
    @griffinschreiber6867 6 месяцев назад +2

    What a time to be alive!

  • @mrdixioner
    @mrdixioner 2 месяца назад

    Красота математики!!!

  • @anon_y_mousse
    @anon_y_mousse 7 месяцев назад +3

    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.

  • @eternal_learner9943
    @eternal_learner9943 7 месяцев назад

    Beautiful.

  • @kimeg7294
    @kimeg7294 7 месяцев назад +2

    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.

  • @TheCptEd
    @TheCptEd 7 месяцев назад

    So good!

  • @nycoshouse
    @nycoshouse Месяц назад

    you have to add a crosshair and display number under it in a corner of the screen with properties (prime divisors)

  • @rezashir3873
    @rezashir3873 7 месяцев назад

    you are the best. keep going

  • @erc0re526
    @erc0re526 7 месяцев назад +1

    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!

    • @CoderSpaceChannel
      @CoderSpaceChannel  7 месяцев назад +2

      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

    • @erc0re526
      @erc0re526 7 месяцев назад

      @@CoderSpaceChannel ahh I see! Thanks

  • @fancyfractals2820
    @fancyfractals2820 7 месяцев назад

    Awesome!

  • @eternal_learner9943
    @eternal_learner9943 7 месяцев назад +3

    Geometry = Numbers in space.

  • @minecraftermad
    @minecraftermad 7 месяцев назад +1

    I wonder what tranformations you'd need to align this with the n dimensional model that natural language forms?

  • @iamdigory
    @iamdigory 4 месяца назад

    Please tell us more about which numbers end up in which structures and why

  • @VCC1316
    @VCC1316 7 месяцев назад +1

    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.

    • @CoderSpaceChannel
      @CoderSpaceChannel  7 месяцев назад +1

      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.

    • @VCC1316
      @VCC1316 7 месяцев назад +1

      @@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 ....

    • @VCC1316
      @VCC1316 7 месяцев назад +1

      @@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!

  • @pr4shantishere
    @pr4shantishere 6 месяцев назад +1

    Hey, can you do a tutorial on physics with opengl and python

  • @pasindu1996
    @pasindu1996 6 месяцев назад

    Its amazing

  • @olbluelips
    @olbluelips 5 месяцев назад

    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

  • @michaelkewl7056
    @michaelkewl7056 7 месяцев назад

    Awesome

  • @silloo2072
    @silloo2072 5 месяцев назад

    We need more videos

  • @Pythonister695
    @Pythonister695 7 месяцев назад

    amazing

  • @FunnyChannel-zp9ov
    @FunnyChannel-zp9ov 6 месяцев назад

    please create a ultimate ursina tutorial and thank you for this video

  • @KarolWasiluk
    @KarolWasiluk 6 месяцев назад

    Can you write a Might and Magic 6 Mandate of Heaven style game in Python? Idea for the project in the next video :)

  • @Sourcecodemastergoaheadcheater
    @Sourcecodemastergoaheadcheater 4 месяца назад

    You know what father likes too see. Cool interesting and puzzling things 😂😂 ty babies

  • @sim8816
    @sim8816 7 месяцев назад

    👍

  • @ek_minute_
    @ek_minute_ 3 месяца назад

    why don't you have millions of subs???????

  • @Clepy
    @Clepy 7 месяцев назад

    CAn u teach us how to make a cool fps game like with good graphics and u deserve a sub

  • @shick1
    @shick1 7 месяцев назад

    Не, натуральные числа это деревья (графы), где листья это простые числа, например 2*3^(5*11)*5*7 =) круто было б такую если визуализацию кто-то сделал...
    Точнее все узлы - простые числа

  • @HoSza1
    @HoSza1 7 месяцев назад

    Why isn't multiplicity accounted for? The vector of 12 should be 2, 1, 0, ... instead of 1, 1, ... because 12 = 2² * 3¹.

  • @SkyFly19853
    @SkyFly19853 7 месяцев назад

    You mean arrays ?

  • @MaxCarponera
    @MaxCarponera 7 месяцев назад

    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'

    • @CoderSpaceChannel
      @CoderSpaceChannel  7 месяцев назад +2

      reinstall PyGLM

    • @MaxCarponera
      @MaxCarponera 7 месяцев назад

      @@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.

  • @giusepperadatti225
    @giusepperadatti225 7 месяцев назад +1

    can you make a voxel engine with collisions?

  • @Gabriel38196
    @Gabriel38196 7 месяцев назад +1

    wow I'm early

  • @Logicatube
    @Logicatube 7 месяцев назад

    Чето подобное я видел у onigiri

    • @Egor_Babushka
      @Egor_Babushka 5 месяцев назад

      он такое с комментами с ютуба делал

  • @mmmmm1438
    @mmmmm1438 7 месяцев назад

    wwowwwwwwwwww

  • @harshalpatel4801
    @harshalpatel4801 7 месяцев назад

    use some other methods and maybe display all of them

  • @DeineMuddaIstEchtZiemlichFett
    @DeineMuddaIstEchtZiemlichFett 7 месяцев назад

    great video!