How do you write a custom scikit-learn transformer that works in a Pipeline?
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.Write a custom transformer that clips each feature at a percentile learned from the training data and applies log1p.
- Which conventions must it follow so that
Pipeline,cloneandGridSearchCVwork? - Why is this an example of duck typing?