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

Plumb through y in fit and fit_transform #37

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

jcrist
Copy link
Member

@jcrist jcrist commented Mar 20, 2024

Previously all steps would only rely on X during fitting, so we completely ignored y if it was passed in. We now have at least one desired Step that relies on y during the fitting process, which means we need to start properly handling y in fit/fit_transform.

This PR handles:

  • normalizing X and y to a single Table from a variety of possible inputs
  • Plumbing through X and y metadata through fit and fit_transform.

Still needs a bunch of tests, but I believe this works already in general.

jcrist added 3 commits March 20, 2024 15:39
Previously all steps would only rely on `X` during fitting, so we
completely ignored `y` if it was passed in. We now have at least one
desired `Step` that relies on `y` during the fitting process, which
means we need to start properly handling `y` in `fit`/`fit_transform`.

This PR handles:
- normalizing `X` and `y` to a single `Table` from a variety of possible
  inputs
- Plumbing through `X` and `y` metadata through `fit` and
  `fit_transform`.

Still needs a bunch of tests, but I believe this works already in
general.
@jcrist jcrist changed the title [WIP] Plumb through y in fit and fit_transform Plumb through y in fit and fit_transform Mar 21, 2024
@jcrist jcrist marked this pull request as ready for review March 21, 2024 21:17
@jcrist jcrist merged commit 6e17995 into ibis-project:main Mar 21, 2024
4 checks passed
@jcrist jcrist deleted the plumb-through-y branch March 21, 2024 21:20
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 this pull request may close these issues.

1 participant