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

Refactor for better sklearn compatibility #25

Merged
merged 7 commits into from
Mar 11, 2024
Merged

Conversation

jcrist
Copy link
Member

@jcrist jcrist commented Mar 7, 2024

This is a major API refactor, intended to accomplish the following:

  • Reduce the number of named objects and concepts, simplifying the user-facing API.
  • Improve compatibility with sklearn. The goal here is not to be a drop-in API for sklearn, instead the goal is to be able to integrate ibisml into sklearn workflows. With this refactor you should be able to include a ibisml.Recipe as a step within an existing sklearn pipeline and have things "just work".
  • Still support usage outside of sklearn workflows. We don't want to force users to fit the sklearn model, but given sklearn is a common standard within the python ecosystem, it'd be good to make the common case simpler.

Still TODO:

  • a few more tests (our test coverage is still poor, but we can improve that mostly in follow-ups)
  • Update README
  • Update docs

This is a major API refactor, intended to accomplish the following:

- Reduce the number of named objects and concepts, simplifying the
  user-facing API.
- Improve compatibility with `sklearn`. The goal here is not to be a
  drop-in API for `sklearn`, instead the goal is to be able to integrate
  `ibisml` into `sklearn` workflows. With this refactor you should be
  able to include a `ibisml.Recipe` as a step within an existing
  `sklearn` pipeline and have things "just work".
- Still support usage outside of sklearn workflows. We don't want to
  force users to fit the sklearn model, but given sklearn is a common
  standard within the python ecosystem, it'd be good to make the common
  case simpler.
ibisml/core.py Outdated Show resolved Hide resolved
ibisml/core.py Outdated Show resolved Hide resolved
ibisml/core.py Show resolved Hide resolved
ibisml/core.py Show resolved Hide resolved
@jcrist jcrist changed the title [WIP] - Refactor for better sklearn compatibility Refactor for better sklearn compatibility Mar 11, 2024
@jcrist
Copy link
Member Author

jcrist commented Mar 11, 2024

Our test coverage could still use some work, but for now this is strictly an improvement on the prior state. I'm going to merge this now and we can continue iteratively improving things in follow-up PRs.

@jcrist jcrist merged commit d726f70 into ibis-project:main Mar 11, 2024
4 checks passed
@jcrist jcrist deleted the refactor branch March 11, 2024 22:07
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.

2 participants