Skip to content

transformer/regressor API question #28744

Answered by glemaitre
BalzaniEdoardo asked this question in Q&A
Discussion options

You must be logged in to vote

Q1: is there a better way to comply with the transformer API than the one I have currently adopted (without changing the API for Basis drastically)?

Your code makes me think about the GaussianProcess in scikit-learn. basis would be equivalent to kernel parameters (https://github.com/scikit-learn/scikit-learn/blob/f07e0138b/sklearn/gaussian_process/kernels.py) and the transformer would be the role of the regressor/classifier (GaussianProcessRegressor or GaussianProcessClassifier) that take kernel as a parameter.

So I would probably check if the design pattern is close to this.

Q2: why is the signature for the transformer's fit , transform and fit_transform methods so restrictive, allowi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BalzaniEdoardo
Comment options

Answer selected by BalzaniEdoardo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants