A Visual Guide to Feedforward Neural Networks

Neural networks are great models for finding patterns in data. They’re incredibly simple, but powerful, and have been used for virtually every domain in machine learning. This will be a simple guide to neural networks, focusing on building up an intuition for how they work, rather than a deep understanding of the math. I’ll be focusing solely on how neural networks that are already built work. How these nets are built is significantly more complicated, but if you wish to learn about it, this is a great post on the subject.

(more…)

Read More

A Brief Overview of Noteworthy Haskell Features

After getting interested in Haskell thanks to this video (both educational and quite funny, highly recommended), I decided to start learning language. It’s been (and continues to be) a strange experience, much different than learning Python or Objective-C. In the beginning it felt a bit like relearning programming.

To teach myself I decided to write a spaced-repetition learning program, inspired by Anki. I’ll cover some aspects of Haskell I struggled to understand, so that other beginners may avoid the same mistakes I did, and give a brief overview of some of Haskell’s features that I found particularly useful. All the code examples will be taken from the spaced-repetition program I wrote, the source of which can be found here, if you’re curious about how a piece of code fits in with the rest of the program.

Some level of programming knowledge is assumed, mainly a basic understanding of functions and types.

(more…)

Read More

Creating a basic chess AI with Python

Recently, I made a chess program in Python and published the source on github here. The code is just under 1000 lines, about 20% of which is dedicated to the AI. In this post I’ll cover how the AI works, what each part does. and why it works like that. You can just read through, or download the code and mess around with it as you read. The AI is all in the AI.py file, although it might help to look at the other files to see what the classes that the AI depend on do.

(more…)

Read More

An introduction to Node.js, Express, MongoDB, and more

Node and express can be incredibly confusing to a newcomer, even one with programming experience, I struggled a lot to understand the basics at first. Now that I have a firmer understanding of the framework, I thought I’d write an introduction to node, express, and some of my most used modules, the kind of thing I wish I could have read when I started learning node.js. I won’t be going over basic javascript syntax, and I’ll assume you have an intermediate understanding of programming in general.

(more…)

Read More

Hello world

<p”>Hello world. I thought for a while about what to title my first post, trying to find a better alternative to WordPress’ default ‘hello world’. I’ve failed, but ‘hello world’ actually seems like a decent way to start a blog which will concern programming. As anybody who’s ever tried their hand at programming knows, ‘hello world’ is the first stepping stone into the world of computer programming, and has been for decades. (more…)

Read More