javascript

Gradient descent and the curse of conditioning

Gradient descent and the curse of conditioning

Gradient descent is a loop of a few lines and it always goes downhill. On most problems worth solving it is also painfully slow, and the reason has a name: the condition number.

This is the first post in a series on nonlinear optimisation (NLP, nonlinear programming). A long time ago I wrote about BFGS and went straight to the clever method without showing what it cures. This time I start with the disease :).

The logistic map and the road to chaos

The logistic map and the road to chaos

Take a number between 0 and 1. Multiply it by one minus itself, then by a constant $r$. Feed the result back in and repeat:

$$ x_{n+1} = r x_n (1 - x_n) $$

For some values of $r$ the sequence settles on one number. For others it bounces between 2, 4 or 8 values, and for others it never repeats and looks like noise. It is one multiplication away from a linear recurrence, and most of the vocabulary of chaos can be read off it.

Five small simulations in the header of this blog

Five small simulations in the header of this blog

Look at the top of this page: something is moving :). Every post on this blog now has a small simulation running in its header, and the home page borrows the one from its newest post.

There are five of them, and each one is built on a single small idea. This article goes through all five, with a toy version of each that you can play with.

Text to picture

Text to picture

Hey guys, I created a web visualization for w2vec translated text. It basically generates a picture from your text using w2vec representations for words and a chosen palette.

Chip 8 Emulator in Javascript

Chip 8 Emulator in Javascript

This weeks short and sweet project is actually a CHIP-8 emulator. Check it out !

Play with it by clicking here

See how I programmed it by clicking here (or just scroll :) ).

Check the github code here.