A dedicated transform method makes it easier for subclasses to do only that.
Add regression=False parameter; set to True if you're dealing with a regression problem.