i love watching these vods while writing code myself, although your projects are consistently more interesting than mine.
@thisguyisnotable
9 ай бұрын
same here!
@dasmessier12
9 ай бұрын
The reason why the samples are denser in the center is because you were generating it by randomizing the magnitude then the angles. randomizing the magnitude will give you the probability of the samples lay within r*mag to the center of the circle. However, the area in which those samples can be placed (pi*(r*mag)**2) doesn't grow at the same rate as r*mag. thus, the greater mag is, the lower the density. Bertrand paradox illustrates this phenomenon really well.
@fivefoottwelve2789
9 ай бұрын
What would be a better way to create an even distribution? By generating randomly in a square and then throwing out points that fall outside the circle?
@dev688
9 ай бұрын
@@fivefoottwelve2789 maybe tweaking the random function and hard-coding some percentage to generate certain random values. I don't know any better way. \_(`-`)_/
@dasmessier12
9 ай бұрын
@@fivefoottwelve2789 if you want the density to be equal across all region of the circle, that is a great way to do it.
@carvas18
9 ай бұрын
@@fivefoottwelve2789 A quick and dirty way is to use `r * sqrtf(mag)` instead of `r * mag` (where r is the fixed radius and mag ranges from 0 to 1).
@denoww9261
9 ай бұрын
@@fivefoottwelve2789 that'd probably be my approach. i remember a Sebastian Lague video where he generated points randomly in a circle and ran into this same issue, and fixed it by using that method instead
@monootaku6350
9 ай бұрын
- "It looks like a machine learning algorithm" Because it it. Its algorithm from "Unsupervised learning" group which used to process/aggregate data when there is no right answer or goal. It used to cluster data, compress, aggregate and stuff like then. П.С. "С новым годом"
@SeishukuS12
9 ай бұрын
Micky mouse goes into public domain, and this is what people do with it? 🤔 lol
@viacheslavprokopev8192
9 ай бұрын
But they use k-nearest neighbours algorithm in a paper, no k-means
@TsodingDaily
9 ай бұрын
Ah shi, another stream incoming then
@forayer
9 ай бұрын
@@TsodingDailywe are not complaining! 😊
@viacheslavprokopev8192
9 ай бұрын
@@TsodingDaily K-means is harder and more interesting anyway. K-nearest neighborus is just some dot products and sorting.
@oscardeits4709
9 ай бұрын
If you replace the commas with nulls you can use the c apis directly without the temporary buffer. That way the csv is actually a sequence of null terminated strings. You do need to keep track of the newline and replace thatvwith null aswell
@NoneNone-ly6xz
9 ай бұрын
Why doesn't this video show up in my subscriptions page? It showed up in the homepage but not in the subscription page. Am I the only one experiencing this?
@shivashankar28
9 ай бұрын
Man I love your videos in C, I am starting to love C slowly, my passion in C is increasing due to you, Thanks a lot Tsoding, hope one day I will send minor patches to linux kernel
@spacewad8745
9 ай бұрын
happy new year folks. great way to start the new year with a tsoding video 🎉
@yaksher
9 ай бұрын
@42:49 You say "Disney lawsuit incoming," but the mouse is in the public domain now. You're safe.
@prokras8609
9 ай бұрын
wait really? since when?
@anon_y_mousse
9 ай бұрын
@@prokras8609 January 1st of this year.
@ABuffSeagull
9 ай бұрын
Original Steamboat Willy mouse went public domain at the start of 2024
@postmodernist1848
9 ай бұрын
Yeah, the samples are actually more dense in the center, because the probability for a point on a vector with a larger magnitude is the same as the one with a shorter magnitude, so you have the same chance to get a point on a large circumference and it's much sparser. It's a generate_cluster() problem, not a rand() problem. You could generate points in a square which is 2 radii in width and height and only pick points that are within the radius to get "uniform" distribution
@ecosta
8 ай бұрын
It is so weird how CSV is meant to be a simple standard, but devs tend to make it complicated by introducing a bazillion of libraries to parse it. I love to see a simple parse without dependencies like that.
@vgarzareyna
9 ай бұрын
as seen in a video by mathemanic called "the numerical simulation is not as easy as you think". the phenomenon where the clusters are denser at the center can be fixed by assigning the magnitude equal to the square root of the random variable between 0 and 1. that is (as others have pointed out before) the rate of change of the area of a circle is not constant as you increase the radius, instead it increases with the square of the radius
@koktszfung
9 ай бұрын
The Lloyd’s algorithm can be used to create a mesh called centroidal Voronoi tessellation. I once used it to generate a mesh on a sphere with non uniform density. That would be pretty cool to make and it basically uses the same algorithm as the one you implemented
@sanjaux
9 ай бұрын
NOB_GO_REBUILD_URSELF Technology™
@RandomGeometryDashStuff
9 ай бұрын
44:04 maybe it's denser in center for same reason as if you take same length sticks and place them with ends at one point (4 sticks look like +, 5 sticks look like *), then whole thing's center is dense (biggest wood/air ratio by volume)
@JamesSjaalman
9 ай бұрын
Simple data set := Iris sepal/petal. (3 clusters, 4 dimensions)
@anthonygg_
9 ай бұрын
How about that guys
@obsidianhead
9 ай бұрын
Is a group if react developers a degenerate cluster?
@semihkaplan
9 ай бұрын
He uses makefiles for everything but c
@Caareystore153
8 ай бұрын
This is better than other data mining tutorial that teach how to use library instead of doing actual things
@bestformspielt
9 ай бұрын
I really enjoyed watching this! This was one of the coolest videos you've done. Not that the others weren't good, but this one stood out.
@Scriabin_fan
8 ай бұрын
Do you have any resources you’d recommend for learning how to make build systems for projects?
@nevokrien95
8 ай бұрын
Gzip is all u need could be made in python in like 20 minutes.... with 2 packages and like 20 dependencies
@labsendeyshent
9 ай бұрын
Pog! New zozin video just dropped
@toshevislombek
8 ай бұрын
46:00 reason why center is denser bc line or track neer the center will be shorter but distribustion per track is equal shorter track length causes denser around ceter, if use normale space like square and cancel out outer dots to circle gives you eqaul distribution on screen, I liked video))
@apppples
9 ай бұрын
can I recommend poison disc sampling for initial means? bridsons algorithim is not hard to implement and it will give you better means spaced a min distance apart. also randomly sampling a radius and angle from a spot will not uniformly sample a circle, because the area of a circle is proportional to the square of the radius. so take the sqrt of your random float when placing points to get a more uniform sampling of points
@mazenmohsen3423
9 ай бұрын
Tsoding, How do you get ideas for your projects? It's interesting to me how you don't run out of ideas.
@VojtaJavora
9 ай бұрын
Tsoding. Do you know why you are using CLITERAL?
@hubstrangers3450
9 ай бұрын
Thanks you.... same ...peaceful 2024!!!,
@JnillCorreia
8 ай бұрын
Is it possible some kind of funcitonal style in C?
@CuriousCyclist
9 ай бұрын
I love your videos buddy. Keep doing what you are doing. You teach well.
@SiiKiiN
9 ай бұрын
You could visualize the high dimensional data by running pca two reduce the dimensions. In your case you can do pca of dimension 2 and what you would obtain is a 2 dimensional vector where the 2 values have the largest “explained variance” this basically means that those 2 features contribute to the variance in the data more than any other 2 features. You would be able to do clustering in the high dimension and just display using the pca.
@pemrograman-cepat3393
9 ай бұрын
This is what I am looking for😮
@KimberlyWilliamsch
9 ай бұрын
Who is tsoding daily, and where is he come from?
@__gadonk__
9 ай бұрын
He's a totally not crazy person, that wrote a compiler in PHP that compiles C code into Python.... He's from Novisibirsk(if i recall corectly), Russia
@albtein
9 ай бұрын
Do you have some tip for people who really wanna learn C? I don't see many good courses out there or even tutorials with development patterns.
@bebre_2288
9 ай бұрын
There are not any patterns for C really, it is language wich purpose is being as simple as possible. If you want to learn some "tricks" you really should watch his videos on C. The are really good source. (And btw he learned all by himself, so he cannot really suggest anything except for programming and reading others people code)
@user-tk5gj2cz5q
9 ай бұрын
To start with, check out Jacob Sorber. He answers many questions for beginners.
@Stroopwafe1
9 ай бұрын
Start a project and write the code, you can't really learn by just watching people do something. If you work on a project, you'll look up why stuff doesn't work, how to do stuff in C, and slowly but surely, you'll get better and better. Best tip when learning to do anything new is literally just to start doing it
@ed9w2in6
9 ай бұрын
i see Emacs I like
@이제우-s4e
9 ай бұрын
happy new year!!
@stintaa
9 ай бұрын
Loved this stream
@biniyam106
9 ай бұрын
first
@gargleblasta
9 ай бұрын
Your uni truly must have been shit if they didn't even went over k-means clustering
@SiiKiiN
9 ай бұрын
Exactly, but unfortunately It’s pretty common in the “computer science” major which will often forgo many of the computational techniques which are more “applied”. I took 4 discrete math classes and not one on data centered algorithms.
@Stroopwafe1
9 ай бұрын
@@SiiKiiN I went to a university of applied sciences and I also didn't have anything about this. But then again, I didn't take the data-oriented semesters
@user-ux2kk5vp7m
9 ай бұрын
Most universities don’t cover k-means clustering
@gargleblasta
9 ай бұрын
@@user-ux2kk5vp7m then they are not worth the title 'University'
Пікірлер: 91