149 Followers
·
Follow

A quick guide to fractals and the Space Colonization algorithm

Image for post
Image for post
My P5.js implementation

In this article, I’m going to code up some special kind of squiggly shapes that might not help us colonize the galaxy any time soon, but probably will bend your mind and make math fun again. The subject is called fractals.

What are Fractals?

Before answering this question, let’s first look at some examples. Consider the length of the coastline of Britain. How long do you think it is? After a bit Googling you may find:

11,073 miles according to the mapping authority for the United Kingdom

But it also mentions something called the Coastline Paradox. …


A short probability and algorithm tutorial that’s worth your while

Image for post
Image for post
Photo by Miikka Luotio on Unsplash

When you want some values from a certain probability distribution, say, a normal distribution, you could simply call rnorm in R, or numpy.random.normal in Python. But have you ever wondered how they do it under the hood? The underlying idea is incredibly simple yet powerful. In this article, I'm going to explain it visually without boring you with any math symbols. In 3 minutes, you'll be able to implement your own custom distribution simulator. Let's get started!

Rejection Sampling by Monte Carlo Simulation

Any computer system should come with a pseudorandom number generator that is able to give you (pseudo) uniformly distributed random numbers. …


By implementing your own deep learning framework in Python

Image for post
Image for post
Photo by Andre Ouellet on Unsplash

As the beating heart of deep learning, a solid understanding of backpropagation is required for any deep learning practitioner. …

About

Logan Yang

Machine learning engineer. I write about artificial intelligence and career. Follow me here and on Twitter for future content https://twitter.com/logancyang

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store