sibyl-dev / pyreal

An easier approach to using and understanding ML models
MIT License
20 stars 1 forks source link

Adding support and tutorials for easier migration to Pyreal #531

Closed zyteka closed 8 months ago

zyteka commented 8 months ago

Closing issues

Closes #527

Description

This PR focuses on making it easier to migrate existing applications to Pyreal, especially using sklearn, with the following contributions:

  1. Adding RealApp.from_sklearn, which can automatically convert sklearn pipelines/lists of transformers to Pyreal transformers
  2. Adding a generic Transformer() class that wraps simple transformers, including a from_transform_function function that wrap transform functions rather than classes. This effectively replaces DataFrameWrapper. The transformer base class (previously called Transformer) is now called TransformerBase (which matches the language used with Explainers).
  3. Adding a "Migrating to Pyreal" tutorial that walks through the migration process, and adding basic instructions to the README.

Test Plan

Added unit tests and a new tutorial with all new functionality.