Interface Segregation Principle for Machine Learning: Theory and Practice @ValerioVelardoTheSoundofAI
Interface Segregation Principle for Machine Learning: Theory and Practice  @ValerioVelardoTheSoundofAI
Uploaded October 2021 | Updated September 2026, 2 weeks ago
When your client code implements methods it doesn’t use, you have a problem. You’re violating the Interface Segregation Principle.

Your code will be coupled and more difficult to maintain.

In this video, you can learn about the Interface Segregation Principle, how to spot its violations, and how you can refactor ML code to respect it.

By adhering to ISP, your ML code will be cleaner and more maintainable in the longer run.

This video is part of the “Uncle Bob’s #SOLID principles for ML engineers” series.

Slides:
github.com/musikalkemist/solidforml/tree/main/solidforml/05%20Interface%20Segregation%20Principle

Code:
github.com/musikalkemist/solidforml/tree/main/solidforml/05%20Interface%20Segregation%20Principle

===============================

Interested in hiring me as a consultant/freelancer?
valeriovelardo.com

Join The Sound Of AI Slack community:
valeriovelardo.com/the-sound-of-ai-community

Connect with Valerio on Linkedin:
linkedin.com/in/valeriovelardo

Follow Valerio on Facebook:
facebook.com/TheSoundOfAI

Follow Valerio on Twitter:
twitter.com/musikalkemist​

===============================

Content:
0:00 Intro
0:16 Defining Interface Segretation Principle
0:37 ISP: The intruition
1:29 Spotting ISP violations
2:08 ISP violation problems
2:36 The Python example: Recommendation
6:44 Class diagram and ISP violation in example
7:09 Solving ISP violation: The idea
8:34 Solving ISP with hierarchical interfaces
9:47 Solving ISP with multiple inheritance
12:43 What's next?
Interface Segregation Principle for Machine Learning: Theory and PracticeOpenSource Research Project: Post-Mortem Analysis10.  Chord Generation with Generative Grammars - Generative Music AIWorking in Academia VS Startup Company in AI MusicHow to Create Melody Sequences to Train a Neural NetowrkSound Generation with Deep Learning || Approaches and ChallengesHow Voice Cloning Works: Explained EASILYThe Best Library to Augment Audio Data: AudiomentationsExtracting the amplitude envelope feature from scratch in PythonAwards Ceremony - 1st The Sound of AI HackatonWhy is Shum by Go_A such an interesting song?Demo Day - The Sound of AI Accelerator v1
Valerio Velardo - The Sound of AI |

Interface Segregation Principle for Machine Learning: Theory and Practice

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER