Coding TRAIN WRECK: Bayesian Text Classification
Skills:
ML Maths Basics70%
Key Takeaways
Attempts to build a Bayesian text classifier in p5.js
Original Description
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: https://editor.p5js.org/codingtrain/sketches/vZQKzBXJT
Polished code: https://github.com/Programming-from-A-to-Z/bayes-classifier-js
https://youtu.be/unm0BLor8aE
https://youtu.be/RPMYV-eb6lI
https://youtu.be/fxQ0B6BkfKo
https://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: https://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://thecodingtrain.com/discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/
🎥 https://www.youtube.com/pl
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
More on: ML Maths Basics
View skill →Related AI Lessons
Chapters (17)
Choo choo!
5:35
Welcome & Announcements
10:49
Fall Plans
14:19
Technical Difficulties: Whiteboard Setup
23:20
Main Topic: Bayesian Text Classification
33:03
Whiteboard: Explaining Bayes' Theorem (Attempt 1)
44:02
Technical Difficulties: Muted Microphone
45:52
Whiteboard: Explaining Bayes' Theorem (Attempt 2)
1:24:54
Live Coding Begins
1:32:42
Re-recording the Introduction for Edited Video
1:40:13
Technical Difficulties: Camera Overheating
2:04:10
Coding Resumes: Building the Classifier
2:51:10
Explaining Laplacian (Additive) Smoothing
3:12:20
Normalizing the Final Probabilities
3:24:12
Coding Challenge Complete!
3:24:43
Reviewing a More Polished Version of the Code
3:30:35
Good bye!
🎓
Tutor Explanation
DeepCamp AI