I am trying to implement a class using the sklearn classes to convert both X and Y. But in the sklearn source code I can only find the X transform (for example, kernelPCA):
Definition:
class KernelPCA(BaseEstimator, TransformerMixin)
How this class (which transforms both X and Y) should be organized? And from which sklearn classes should it inherit?