Category Archives: JavaScript

Revisiting My Neural Network Regression System with Raw JavaScript

A couple of years ago I implemented a neural network regression system (predict a single numeric value) in raw JavaScript. I enjoy coding, even in raw JavaScript, so one Saturday evening I figured I’d revise my old example. I didn’t … Continue reading

Posted in JavaScript | Leave a comment

Revisiting My Binary Classification Neural Network with Raw JavaScript

Quite some time ago I implemented a neural network binary classifier in raw JavaScript. One Saturday morning, I was going to walk my two dogs but it was raining so I decided to revisit my code while I waited for … Continue reading

Posted in JavaScript | Leave a comment

Simulating the NumPy loadtxt() Function in JavaScript

When I write Python/PyTorch code, when I load numeric data from a text file into memory, I usually use the NumPy loadtxt() function. For example: all_xy = np.loadtxt(src_file, usecols=range(0,7), delimiter=”\t”, comments=”#”, dtype=np.float32) I have an inexplicable liking for the JavaScript … Continue reading

Posted in JavaScript | Leave a comment

Implementing a Neural Network Using Raw JavaScript

Quite some time ago I implemented a neural network multi-class classifier using raw JavaScript. The implementation had a single hidden layer of nodes, but even so, the implementation took many days to complete. See https://jamesmccaffrey.wordpress.com/2022/01/24/a-neural-network-with-raw-javascript/. My old implementation used one-hot … Continue reading

Posted in JavaScript | 1 Comment

First Impressions of the Svelte JavaScript Framework

Bottom line: I am very impressed with Svelte, mostly because it just “feels right”. Let me start by saying that the title of this blog post isn’t correct. Svelte is not a JavaScript framework like React, Angular, and Vue — … Continue reading

Posted in JavaScript | Leave a comment

A Super Simple Single Page Web Application Using Only JavaScript and HTML

I recently started working on a project that uses the Nuxt.js JavaScript Framework. It had been several months since the last time I worked on a Web project. I knew from past experience that I should warm up with a … Continue reading

Posted in JavaScript | 1 Comment

A Neural Network with Raw JavaScript

On a recent Winter weekend, I was snowed-in in my house. To use some time productively, I dusted off some old JavaScript code I wrote. The code implements a complete neural network classifier from scratch. The goal of the demo … Continue reading

Posted in JavaScript, Machine Learning | Leave a comment

JavaScript and the Sapir-Whorf Hypothesis

The Sapir-Whorf hypothesis loosely states that the structure of a spoken language affects its the way its speakers see and understand the world. This makes intuitive sense — a tribesman from a primitive country there the language doesn’t have words … Continue reading

Posted in JavaScript, Machine Learning | Leave a comment

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 | Comments Off on Parrando’s Paradox Using JavaScript

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 | Comments Off on A Quick Look at Deno