Monthly Archives: June 2025

Linear Regression Using JavaScript

The most basic form of machine learning is linear regression. I put together a demo of linear regression using JavaScript for my Web developer colleagues at my workplace. Suppose you want to predict a person’s income from their age, height, … Continue reading

Posted in JavaScript, Machine Learning | Leave a comment

More Stunningly Beautiful Visualizations From Thorsten Kleppe

Fellow machine learning enthusiast Thorsten Kleppe (https://github.com/grensen, thorsten.kleppe@gmail.com) produces amazingly beautiful data and machine learning visualizations. He sent me an email message recently with some of his latest explorations: Stunningly beautiful. And the visualizations are interactive — the viewer can … Continue reading

Posted in Machine Learning | Leave a comment

“Linear Support Vector Regression Using C# with Particle Swarm Training” in Visual Studio Magazine

I wrote an article titled “Linear Support Vector Regression Using C# with Particle Swarm Training” in the June 2025 edition of Microsoft Visual Studio Magazine. See https://visualstudiomagazine.com/articles/2025/06/03/linear-support-vector-regression-using-c-with-particle-swarm-training.aspx. There are approximately a dozen common regression (predict a single numeric value) techniques. … Continue reading

Posted in Machine Learning | Leave a comment

Adding a Transformer Module to a PyTorch Regression Network – Linear Layer Pseudo-Embedding

I’ve been looking at adding a Transformer module to a PyTorch regression network. Because the key functionality of a Transformer is the attention mechanism, I’ve also been looking at adding a custom Attention module instead of a Transformer. There are … Continue reading

Posted in PyTorch, Transformers | Leave a comment

Running My Standard PyTorch Multi-Class Classification Demo on Colab from a MacOS Machine, 2025 Update

I sometimes present PyTorch training sessions at my workplace or at technical conferences. By far the biggest pain point is dealing with attendees’ PyTorch installations. So I’ve been investigating the feasibility of using the online Colab system. Briefly, Colab is … Continue reading

Posted in PyTorch | Leave a comment

Linear Regression Using Client-Side JavaScript in a Web Page

One of my work colleagues asked me about running a linear regression prediction system from within a Web page. So I put together a demo for him. I had existing linear regression JavaScript code written for the node.js system, so … Continue reading

Posted in JavaScript, Machine Learning | 1 Comment

Computing the Roots of a Polynomial Equation Using the Eigenvalues of the Companion Matrix with Python and NumPy

I spend some time every morning before work to learn something new. For me, learning something new usually means writing a computer program of some sort. On a recent morning, I figured I’d demonstrate how to compute the roots of … Continue reading

Posted in Machine Learning | Leave a comment

Kernel Ridge Regression Using C# with Cholesky Matrix Inverse Training

Kernel ridge regression (KRR) is a technique to predict a single numeric value. KRR uses a kernel function, which compares two vectors and computes a measure of their similarity in order to handle complex non-linear data, and the ridge technique … Continue reading

Posted in Machine Learning | Leave a comment

Zoltar NFL 2025 Football Early Predictions – Zoltar Likes the Lions and the Chiefs

Zoltar is my NFL football prediction computer program. It uses a type of reinforcement learning and a neural network. The first game of the 2025 NFL season will be played on Thursday, September 4 (Dallas Cowboys at the Philadelphia Eagles). … Continue reading

Posted in Zoltar | Leave a comment

Support Vector Regression Using Evolutionary Optimization Training – Success

Kernelized support vector regression is a rarely used technique to predict a single number. One of the problems with kernelized SVR is that it uses a loss function (epsilon-insensitive loss) that is not calculus-differentiable and so ordinary training/optimization techniques such … Continue reading

Posted in Machine Learning | Leave a comment