April 26, 2022, 3:46 p.m. | Arafath Hossain

Towards Data Science - Medium towardsdatascience.com

Polymorphism: Understand the Concept Behind Creating Custom Classes like Custom Transformers in Scikit-Learn

Ever wondered why some Python classes call methods out of no-where? Or implement some methods just to pass?

If you have ever encountered a Scikit-Learn custom transformer, you are very likely familiar with this phenomenons above. Well, if that’s the case this article is for you. We will dive into the concept called Polymorphism that enables such behavior, and we will build some custom classes to get …

concept machine learning oop programming python scikit-learn transformers

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead Data Engineer

@ WorkMoney | New York City, United States - Remote