Uploaded September 2025 | Updated November 2026, 14 hours ago
Warning, this live stream was a mess and is probably unwatchable! But if you choose to continue you'll see me attempt to build a Naive Bayes text classifier from scratch in the p5.js web editor! I start by explaining the core concepts behind Bayes' Theorem (multiple times) before diving into the code. You'll see my raw, unedited process of structuring the data, implementing the algorithm, debugging issues, and finally building a simple interactive sentiment analysis demo.
Code from live: editor.p5js.org/codingtrain/sketches/vZQKzBXJT
Polished code: github.com/Programming-from-A-to-Z/bayes-classifier-js
youtu.be/unm0BLor8aE
youtu.be/RPMYV-eb6lI
youtu.be/fxQ0B6BkfKo
youtu.be/HZGCoVF3YvM
00:00:00 Choo choo!
00:05:35 Welcome & Announcements
00:10:49 Fall Plans
00:14:19 Technical Difficulties: Whiteboard Setup
00:23:20 Main Topic: Bayesian Text Classification
00:33:03 Whiteboard: Explaining Bayes' Theorem (Attempt 1)
00:44:02 Technical Difficulties: Muted Microphone
00:45:52 Whiteboard: Explaining Bayes' Theorem (Attempt 2)
01:24:54 Live Coding Begins
01:32:42 Re-recording the Introduction for Edited Video
01:40:13 Technical Difficulties: Camera Overheating
02:04:10 Coding Resumes: Building the Classifier
02:51:10 Explaining Laplacian (Additive) Smoothing
03:12:20 Normalizing the Final Probabilities
03:24:12 Coding Challenge Complete!
03:24:43 Reviewing a More Polished Version of the Code
03:30:35 Good bye!
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
Warning, this live stream was a mess and is probably unwatchable! But if you choose to continue you'll see me attempt to build a Naive Bayes text classifier from scratch in the p5.js web editor! I start by explaining the core concepts behind Bayes' Theorem (multiple times) before diving into the code. You'll see my raw, unedited process of structuring the data, implementing the algorithm, debugging issues, and finally building a simple interactive sentiment analysis demo.
Code from live: editor.p5js.org/codingtrain/sketches/vZQKzBXJT
Polished code: github.com/Programming-from-A-to-Z/bayes-classifier-js
youtu.be/unm0BLor8aE
youtu.be/RPMYV-eb6lI
youtu.be/fxQ0B6BkfKo
youtu.be/HZGCoVF3YvM
00:00:00 Choo choo!
00:05:35 Welcome & Announcements
00:10:49 Fall Plans
00:14:19 Technical Difficulties: Whiteboard Setup
00:23:20 Main Topic: Bayesian Text Classification
00:33:03 Whiteboard: Explaining Bayes' Theorem (Attempt 1)
00:44:02 Technical Difficulties: Muted Microphone
00:45:52 Whiteboard: Explaining Bayes' Theorem (Attempt 2)
01:24:54 Live Coding Begins
01:32:42 Re-recording the Introduction for Edited Video
01:40:13 Technical Difficulties: Camera Overheating
02:04:10 Coding Resumes: Building the Classifier
02:51:10 Explaining Laplacian (Additive) Smoothing
03:12:20 Normalizing the Final Probabilities
03:24:12 Coding Challenge Complete!
03:24:43 Reviewing a More Polished Version of the Code
03:30:35 Good bye!
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct

![Apple ][ Coding Challenge: Fractal Tree
Take a trip back in time and lets learn all about GR (graphics) and HGR (high resolution graphics) in AppleSoft BASIC on a restored Apple II+ computer! Can we render a fractal tree? Code: https://thecodingtrain.com/challenges/174-graphics-applesoft-basic
π Watch this video ad-free on Nebula https://nebula.tv/videos/codingtrain-coding-challenge-174-fractal-tree-on-apple-ii
π₯ Previous video: https://youtu.be/7r83N3c2kPw?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π§ What is Code?: https://nebula.tv/what-is-code
πΆ Coding Together: https://soundcloud.com/user-207981744-979066415/coding-together
Related Videos:
π₯ AppleSoft Basic Snake Game: https://thecodingtrain.com/challenges/173-snake-applesoft-basic
π₯ The Bouncing Ball: https://thecodingtrain.com/tracks/code-programming-with-p5-js/code/3-conditionals/2-bouncing
π₯ Polar Coordinates: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/3-angles/4-polar-coordinates
AppleSoft BASIC:
π The AppleSoft Tutorial: http://cini.classiccmp.org/pdf/Apple/The%20Applesoft%20Tutorial.pdf
π Basic Programming Reference Manual: https://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Software/Languages/Applesoft%20BASIC/Manuals/Applesoft%20II%20BASIC%20Programming%20Reference%20Manual.pdf
πͺ§ Peeks, Pokes and Pointers: https://archive.org/details/peeks-pokes-pointers
π’ Renumber: https://www.callapple.org/programming/renumber-pro-source-code-made-available/
Apple II Emulators:
β Applesoft BASIC in JavaScript: https://www.calormen.com/jsbasic/
π Apple IIjs: https://www.scullinsteel.com/apple2/
π MicroM8: https://paleotronic.com/software/microm8/
Timestamps:
0:00 Hello from 1981!
0:16 Coding Together Theme
1:10 Getting started
1:30 Graphics Mode (GR)
1:56 Apple II+ Screen Capture
2:08 Plotting Points and Lines
3:33 Bouncing Ball
13:01 Adding Sound
14:39 High Resolution Graphics (HGR)
17:43 Fractal Tree
18:10 Trigonometry Explanation
20:05 Coding the Tree
23:12 Explaining Recursion
33:00 Adding User Input
34:52 Share your version!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Coding Together Theme by Will from America (https://twitter.com/willfromamerica)
Eye of the Tiger cover by Leon from @neoexplains
Additional music from from Epidemic Sound
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://discord.gg/hPuGy2g
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#fractal #1980s #appleii #bouncingball #basic Apple ][ Coding Challenge: Fractal Tree](https://i.ytimg.com/vi/UNkHditYGls/mqdefault.jpg)








