Category Archives: JavaScript

Parrando’s Paradox Using JavaScript

I was preparing to start a project that will use JavaScript. To get ready, I coded up a few short demos of my favorite problems, using JavaScript. One of these favorite problems is Parrando’s Paradox. It’s one of the most … Continue reading

Posted in JavaScript, Machine Learning | Leave a comment

A Quick Look at Deno

Deno is a program that allows you to run JavaScript and TypeScript programs. Deno is a direct successor to Node.js and in fact Deno was written by the guy who wrote Node.js. I started working on a small project that … Continue reading

Posted in JavaScript | Leave a comment

A Quick Look At The Dart Language

The Dart programming language has created in 2011. I hadn’t looked at Dart in a long time so I figured I’d install it and run a “Hello World” program to refresh my memory. Dart was intended to be a replacement … Continue reading

Posted in JavaScript | Leave a comment

Matrix Inverse with JavaScript

I regularly use several programming languages. For the past few months I’ve been working mostly with C#. It’s important for me to practice with the other programming languages I use so I don’t get rusty. So, I decided to port … Continue reading

Posted in JavaScript, Machine Learning | Leave a comment

Reading and Writing Files Using Node.js

For the past couple of months I’ve been exploring the idea of creating a simple neural network (single hidden layer only) library using JavaScript. To implement a neural network library, it’s necessary to be able to read and write files. … Continue reading

Posted in JavaScript, Machine Learning | Comments Off on Reading and Writing Files Using Node.js

Computing the Inverse of Matrix

The inverse of a matrix is used in many, many machine learning algorithms. In ordinary mathematics, the inverse of a number n is a number ni so that n * ni = 1. For example, if n = 5 the … Continue reading

Posted in JavaScript, Machine Learning | Comments Off on Computing the Inverse of Matrix

Investigating Neural Network Dropout Using JavaScript

I have implemented quite a few different types of neural networks using several different programming languages. The other day I took a close look at implementing a neural network with dropout training, using JavaScript. Dropout is a technique that is … Continue reading

Posted in JavaScript, Machine Learning | 4 Comments

Neural Network Momentum using JavaScript

I’ve been slowly but surely implementing core neural network functionality using the JavaScript language. My most recent exploration was modifying a back-propagation function so that it used momentum. The motivation is to speed up training. The idea is best explained … Continue reading

Posted in JavaScript, Machine Learning | 2 Comments

Selecting n Random Items Using JavaScript

Even though I’m not a huge fan of JavaScript, I like the language more than most of my engineering / developer colleagues. Just for fun I decided to code up a function that selects n random integers from N. For … Continue reading

Posted in JavaScript, Miscellaneous | Comments Off on Selecting n Random Items Using JavaScript

Neural Network Back-Propagation Using JavaScript

For the past few months, I’ve been slowly exploring the idea of implementing a neural network using raw (no libraries) JavaScript. Once every few days, on my lunch break, I’d design and code a few modules. This morning I made … Continue reading

Posted in JavaScript, Machine Learning | Comments Off on Neural Network Back-Propagation Using JavaScript