Algorithmic Intelligence (AI) Workbooks

Algorithmic Intelligence as with Algorithmic Art this is designed for the beginner who wants to explore this wonderfully fascinating world of Artificial Intelligence that is discussed so much in the media. I have preferred to call it Algorithmic Intelligence rather than just AI because it is much broader than the Large Language Models often referred to when using the expression AI, although it does include that as well.

This will cover the basics where you will build your own models using a Machine Learning library called ml5.js, all on top of p5.js. Next we open up some pre-trained models that are available with ml5.js, including an introduction to transformers with some Small Language Models (similar to chatGPT, Gemini etc). The last workbook introduces you to Neural Evolution which is based on Genetic Algorithms which are similar to a form of Reinforcement Learning.

There is a lot to get through I am sure you are going to find this section fascinating. The workbooks also include some p5.js sketches relevant to each module, these are good reminders and also essential if you haven’t already worked through the Algorithmic Art workbooks which I do recommend.

Workbook #1 Your First Model

Module A Unit #1: introduction to algorithmic intelligence
Module A Unit #2: What is p5.js?
Module A Unit #3: overview of ml5.js
Module A Unit #4: p5.js code snippets #1
Module A Unit #5: linear regression with ml5.js
Module A Unit #6: sine wave regression with ml5.js

Workbook #2 Creating More Models

Module A Unit #7: mouse gesture with ml5.js
Module A Unit #8: p5.js code snippets #2
Module A Unit #9: cluster classification with ml5.js
Module A Unit #10: cluster regression
Module A Unit #11: colour predictor
Module A Unit #12: pixel predictor
Module A Unit #13: saving and loading

Workbook #3 Pretrained Models

Module B Unit #1: p5.js code snippets #3
Module B Unit #2: faceMesh with ml5.js
Module B Unit #3: handPose with ml5.js
Module B Unit #4: bodyPose with ml5.js
Module B Unit #5: soundClassifier with ml5.js
Module B Unit #6: body segmentation with ml5.js
Module B Unit #7: image classification
Module B Unit #9: bounding box image classification
Module B Unit #10: bounding box video classification
Module C Unit #1: introduction to transformers
Module C Unit #2: image classification
Module C Unit #3: depth analysis
Module C Unit #4: image detection

Workbook #4 Neural Evolution

Module D Unit #1: coding snippets #4
Module D Unit #2: neural evolution?
Module D Unit #3: smart cars neural evolution
Module D Unit #4: flappy bird neural evolution