Super Data Science: ML & AI Podcast with Jon Krohn
Super Data Science: ML & AI Podcast with Jon Krohn

649: Introduction to Machine Learning

Looking for a short primer on Machine Learning concepts? SDS Founder Kirill Eremenko and AI expert Hadelin de Ponteves are back, joining Jon Krohn to review essential ML concepts. From classification errors to logistic regression, feature scaling, the elbow method and more. The popular data science

Featured Speakers

Jon Krohn HostKirill Eremenko Guest

Topics Discussed

Episode Summary

Executive Summary: Kirill Eremenko and Atlan de Pontev returned to discuss their new beginner-friendly course, Machine Learning Python Level 1, and to teach core ML concepts. The conversation covered why they resumed course creation, how they redesigned content for shorter attention spans, and practical explanations of supervised vs. unsupervised learning, classification errors, model evaluation, feature scaling, regression assumptions, and clustering via the elbow method.

Main Topics: Return to course creation and changed learner expectations: The guests explain why they stepped away from content creation, why they returned, and how online education has evolved toward shorter, more direct lessons due to limited attention spans and higher content expectations. Course design philosophy: practical, beginner-first ML: They outline their new course structure: foundations of regression, classification, and clustering, using Python examples, real-world case studies, and lighter math than more theory-heavy programs. Supervised vs. unsupervised learning: They distinguish labeled, prediction-oriented supervised learning from pattern-finding unsupervised learning, using fraud detection and customer clustering as examples. Classification evaluation: false positives, false negatives, confusion matrix: They explain true/false positives and negatives using cancer detection, emphasizing that type 2 errors can be especially dangerous in medical contexts and that thresholds can be adjusted. Model validation, train/test split, and drift: They discuss holding out test data to detect overfitting and note that models must still be monitored after deployment because real-world behavior and regulations change over time. Feature scaling and when it matters: They compare normalization and standardization and note that feature scaling is essential for gradient-descent methods but unnecessary for tree-based models like random forests and XGBoost. Regression metrics, assumptions, and clustering tools: They cover R-squared vs adjusted R-squared, the assumptions of linear regression, and the elbow method for choosing the number of clusters in k-means.

Key Arguments: Modern learners have less time and shorter attention spans, so effective courses should be tighter and more direct than seven years ago. Beginner ML education should emphasize practical understanding and correct application over heavy mathematics, while still providing enough theory to use models responsibly. Supervised learning needs labeled outcomes; unsupervised learning is useful for discovering structure or generating labels/patterns when none are provided. False negatives can be more dangerous than false positives in high-stakes settings like medical diagnosis, which is why thresholds should be chosen carefully. A train/test split helps reveal whether a model has memorized training data rather than learned generalizable patterns. Models degrade over time due to feature drift and changes in the real world, so deployment is not the end of the ML lifecycle. Feature scaling is not universally required; it is crucial for gradient-descent-based methods but not for tree-based methods. Adjusted R-squared is preferable to plain R-squared in multiple regression because it penalizes unnecessary variables and reduces overfitting risk. The elbow method helps identify an appropriate number of clusters by locating the point where within-cluster sum of squares begins diminishing less sharply.

Data Points: Episode number: 649 - The podcast episode discussed in the transcript. Students reached: Over 2 million - Kirill and Atlan’s courses on Udemy have reached this many students worldwide. Course structure: 3 branches - The new course covers regression, classification, and clustering. Course levels planned: 3 levels - They described a roadmap of Machine Learning Level 1, 2, and 3. Typical test split: 20% - Kirill said they typically hide 20% of data for testing. Accuracy example: 90% - Example confusion matrix with 80 true positives, 10 true negatives, 7 false positives, 3 false negatives. Confusion matrix counts: 80 TP, 10 TN, 7 FP, 3 FN - Illustrative example used to explain accuracy. Accuracy threshold example: 50% - They noted many classifiers use 50% as the default decision threshold. Adjusted threshold examples: 70% / 30% / 20% - They explained threshold tuning for high-stakes or recall-sensitive applications. Regression output metric: R-squared from 0 to 1 - Used to evaluate regression models. Feature scaling examples: 0 to 1; -3 to +3 or -2 to +2 - Normalization and standardization range examples. Customer clustering features: Age, estimated salary, spending score (1-100) - Mall customer clustering example used for k-means. Dataset source: UCI Machine Learning Repository - They cited the source of public datasets used in the course. Questions handled by chatbot: Around 10,000 per week - Approximate volume of student questions their support chatbot handled.

Pivotal Quotes: "People have less time, but also have more distractions. And therefore, it reduces the attention span." — Atlan de Pontev: Explaining why the new courses use shorter tutorials and a more concise teaching style. "The model makes predictions if it's binary classification, 0, 1, and the accuracy will simply be the number of correct predictions divided by the total number of observations in a test set." — Atlán de Pontev: Describing how classification accuracy is measured. "You want to hide 20% of your data or maybe 30% of your data, depends on the application. But typically, we use 20% of the data." — Kirill Eremenko: Explaining the train/test split and why unseen test data matters.

Implications: The episode reinforces that effective ML starts with sound fundamentals, careful validation, and context-aware model choices. For listeners, it offers a practical roadmap for learning ML responsibly and highlights how AI education must adapt to faster, shorter, more applied formats.

🔓 Sign Up for Unlimited Episode Search

About Super Data Science: ML & AI Podcast with Jon Krohn

View all episodes from Super Data Science: ML & AI Podcast with Jon Krohn