Tag: #machine-learning
What is the simplest neural network? One neuron
A neural network with one neuron that classifies binary-encoded natural numbers. We can decide whether the number is even, or whether it’s greater/less than 5. 2017-04-22
How to write ‘hello world’ in TensorFlow
Two ways to calculate the cost per gram of chocolate: one without machine learning, and another using TensorFlow to learns a linear model. 2017-04-23
Predicting earth radius
2017-04-24
Hand-coded neural networks
2019-06-22
The neural network programming language
2019-06-23
BlazeFace hello world
A demo that uses the BlazeFace model from TensorFlow.js to detect faces in a webcam stream, and draws the detected landmarks on the video. 2020-09-21
Using BodyPix segmentation in a WebGL shader
A WebGL shader that uses BodyPix segmentation to set the alpha channel. 2020-09-24
How to make a floating head
Creating a “floating head” effect using WebGL and the BodyPix machine learning model to segment the face from a webcam feed. 2020-10-06
How to self-host a TensorFlow.js model
Involves downloading the model manifest file and associated binary weight files, to avoid downloading large models every application launch. 2020-10-07
Head tracking with BlazeFace
A method for calculating a bounding circle around a head, using facial landmarks from BlazeFace. Plus a live demo that you can run on your own face. 2020-10-11
A head in a box with BlazeFace
A method for calculating a bounding circle around a head, using facial landmarks from BlazeFace. Plus a live demo that you can run on your own face. 2020-10-12
How to run a pre-trained model in TensorFlow.js
Load the model, convert the input to a tensor, preprocess the tensor to match the model’s expected format, run inference with
.predict()
, and decode the prediction tensor. 2021-02-15What is a Single-Shot Multibox Detector?
2021-02-16
TensorFlow 2 ‘hello world’
A TensorFlow 2 program that learns the cost per gram of chocolate by training a linear model on example chocolate bar weights and prices. 2021-02-17
How to export a model for TensorFlow.js
Exporting a TensorFlow model, converting it to the TensorFlow.js format, and running it in the browser with interactive input. 2021-03-09
Imputation: an interactive tutorial
2022-01-17
A/B Testing: an interactive look at Thompson sampling
2022-07-15
Time series: an interactive tutorial
2022-09-08
All content copyright James Fisher.