Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request to support Pandas or other output formats via the Sklearn set_output API. #99

Open
Paul-B98 opened this issue Dec 10, 2024 · 0 comments · Fixed by #100

Comments

@Paul-B98
Copy link

It would be helpful if the PipelineElement supported Sklearn's set_output API, which is specified and documented in the following links:

I suggest the following implementation as a possible start. It would allow the API to be implemented in a transform step wrapped by PipelineElement. While also allowing tasks that don't implement it to run.

    def set_output(self, *, transform: None | str = None) -> BaseEstimator:
        if hasattr(self.base_element, 'set_output'):
            self.base_element.set_output(transform=transform)
        return self
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant