Examples/fit_transform/fit_transform_api.md

Starting with version 1.4.8 the R version of vtreat includes an additional .fit_transform() interface. This is a back-port from the Python version of vtreat.

The idea is from sklearn's pipeline. It works as follows.

We define mutable objects to manage the variable preparation. This is standard for Python, but a bit unusual for R. However, it has some notation advantages.

These objects define three primary methods:

They work as follows.

This corresponds to the classic R vtreat notations as follows:

Both notation systems are good, the R one being more "R-like" (using the usual immutable objects) and the .fit_transform() one being more Pythonic. We expect to teach and maintain both paradigms.

Examples of the modeling typical tasks in both notations can be found here:



WinVector/vtreat documentation built on Aug. 29, 2023, 4:49 a.m.