This PR focuses on making it easier to migrate existing applications to Pyreal, especially using sklearn, with the following contributions:
Adding RealApp.from_sklearn, which can automatically convert sklearn pipelines/lists of transformers to Pyreal transformers
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).
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.
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:
RealApp.from_sklearn
, which can automatically convert sklearn pipelines/lists of transformers to Pyreal transformersfrom_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).Test Plan
Added unit tests and a new tutorial with all new functionality.