The TWIML AI Podcast
The TWIML AI Podcast

Advancing Hands-On Machine Learning Education with Sebastian Raschka - #565

Today we’re joined by Sebastian Raschka, an assistant professor at the University of Wisconsin-Madison and lead AI educator at Grid.ai. In our conversation with Sebastian, we explore his work around AI education, including the “hands-on” philosophy that he takes when building these courses, his rece

Featured Speakers

Sebastian Raschka Guest

Topics Discussed

Episode Summary

Executive Summary: Sebastian Raschka discusses his path into ML, his teaching philosophy, and research on ordinal regression. He emphasizes balancing theory with practical coding, using projects to motivate learning, choosing mature tools like scikit-learn and PyTorch, and making small, effective model changes rather than reinventing systems. He also previews a free PyTorch-focused course at Grid AI.

Main Topics: Path into machine learning (Priority: 5/5): Raschka explains how a graduate statistical pattern recognition class in computational biology sparked his interest in Bayesian methods and pattern recognition, leading to a career in ML, authorship, and teaching. Teaching philosophy: theory plus hands-on practice (Priority: 5/5): He argues for blending mathematical understanding with code examples, visuals, and projects so students can see immediate value and stay motivated, rather than starting with abstract details alone. Project-based ML education (Priority: 4/5): Raschka describes his course structure: students submit project proposals mid-semester, work in teams, present results, and optionally publish on GitHub to build real portfolio artifacts. Tools, frameworks, and language choices (Priority: 5/5): He recommends Python for ML/DL, scikit-learn for classical ML, and PyTorch for deep learning, while noting R’s strength in statistics and the role of community support, maturity, and comparability. PyTorch Lightning for scalable research workflows (Priority: 4/5): He explains Lightning as a wrapper/platform that reduces boilerplate, standardizes training loops and logging, and makes multi-GPU training easier while preserving control over the underlying PyTorch model. Ordinal regression research (Priority: 5/5): Raschka outlines ordinal regression as a supervised learning setting where labels have order but unknown distances, and describes his work on CORAL and CORN as small modifications to classifiers that improve performance. Future educational content at Grid AI (Priority: 4/5): He shares plans to create a free, high-quality online course focused on PyTorch and possibly PyTorch Lightning, with exercises and community feedback as central features.

Key Arguments: Students learn best when theory is connected to something they can build and inspect immediately. Providing template code and partially completed frameworks lowers intimidation and helps beginners get started. Class projects are powerful, but they must be structured carefully because novices often cannot yet design feasible ML problems on their own. Classical ML remains important; deep learning is not always the best tool, especially for smaller or tabular datasets. Python is the default practical choice for ML/DL because of ecosystem maturity and community support. PyTorch is favored for research because it is flexible enough for custom layers and loss functions while still being widely adopted. PyTorch Lightning improves productivity by standardizing training, logging, and multi-GPU workflows. Ordinal regression is useful when labels are ordered but the gaps between them are not meaningfully measurable. Small architectural/loss-function changes can turn a standard classifier into an ordinal regression model without rebuilding everything from scratch. Comparability matters in research; using common frameworks makes it easier to evaluate new methods against baselines. Good educational materials should include exercises and projects, not just explanations, to confirm understanding and deepen learning.

Data Points: Age labels in ordinal regression example: 70 - Raschka said his first ordinal-regression paper used age classification with labels from 1 to 70 years. Team size in class projects: 3 students - His students work in teams of three on semester-long machine learning projects. Class size: 70 students - He mentioned teaching a course with about 70 students, creating a significant grading/feedback burden. Project proposal length: 2 pages - Students submit a two-page project proposal mid-semester. Final project length: 8 pages - The final project is written in the format of an eight-page conference paper. Approximate number of project groups: 23–24 groups - He estimated that 70 students in teams of three creates roughly 23 or 24 groups to review. Python usage in ML/DL: ~95% - Raschka estimated that about 95% of machine learning/deep learning work is done in Python. PyTorch usage in research trends: ~80% - He estimated that around 80% of current research usage is PyTorch. Typical performance gain from removing Python: ~10% faster - He said Python overhead is relatively small, and removing it might only improve speed by about 10%.

Pivotal Quotes: "I think it's a huge win when people can just improve their model without having to spend a lot of time developing something completely new." — Sam Sherrington: Opening framing of the episode, highlighting the value of incremental model improvements. "I think it's a huge win when people can just improve their model without having to spend a lot of time developing something completely new." — Sebastian Raschka: Raschka's ordinal-regression philosophy: make minimal code changes to improve existing classifiers. "I want to make sure that students also get this practical experience because I think that's also very important and motivating." — Sebastian Raschka: Explaining why his courses emphasize projects, coding, and applied work.

Implications: For learners and practitioners, the message is clear: start with practical, supported tools and small experiments, then deepen theory as needed. For industry and research, common frameworks and modest method changes can yield real gains without costly reinvention.

🔓 Sign Up for Unlimited Episode Search

About The TWIML AI Podcast

View all episodes from The TWIML AI Podcast