In this article we want to take a look at the k-means algorithm. The k-means algorithm is used to determine clusters. It is often the first algorithm you will see in any machine learning introduction, as it is easy to understand. We will code the algorithm in Python and also visualize it.
Dictionary-Tricks in Python5 (3)
In Python, the dictionary is one of the most powerful data structures you can use. There are many features and techniques concerning dictionaries that you may not have on your radar yet, but they will help you to simplify your code and gain more flexibility. This post will present you the 10 most important dictionary-tricks in Python!
Marching Cubes Algorithm5 (3)
The Marching Cubes Algorithm is a meshing algorithm in the field of computer graphics. It is used to extract a polygonal mesh out of an isosurface from a three- or two-dimensional scalar field. It is primarily used for visualization modeling because it makes it easy to adjust the generated mesh.
Midpoint Line Algorithm4.9 (7)
The midpoint line algorithm is a drawing algorithm in the field of computer graphics. It is used to determine how lines are translated into pixels.
7 Python Easter Eggs4.8 (5)
Python is an exciting language and has always some surprises in store, no matter how long you have been working with it. In this Post, I will present 7 really cool easter eggs in Python. Feel free to try them out on your own, I hope you enjoy it!
Compensating the Switch-Statement in Python4.8 (8)
Most common programming languages feature the switch-statement, while Python doesn’t. At first glance, you maybe ask why Python doesn’t support such a common and basic control pattern. This post will explain it and show alternatives for the switch statement!
How to use Linux Ubuntu with Windows 104.7 (3)
If you are a developer or plan to become one, developing on Windows as the operating system (OS) can be… pretty unpleasant. Therefore I want to list some ways on how to use Linux Ubuntu 20.04 with Windows 10. Often it’s no option to install the Linux OS directly to the computer. That’s when virtualization comes into play.
Underscores in Python4.7 (3)
Python is a great language in my eyes, it’s simple to understand, write and its indentation forces at least a bit of styling into the code. But when it comes to underscores, there’s often confusion.
… \r’: No such file or directory4 (2)
If you encountered this error when executing a bash script its probably because you use a script that was written under Windows and you want to use this in an Unix system now. The problem is that the control characters of your file are different, depending on wich OS (Operating System) you use. 1. Fix […]