fit_transform: Fit and transform in a cross-validated manner.

View source: R/ft.R

fit_transformR Documentation

Fit and transform in a cross-validated manner.

Description

Update the state of first argument to have learned or fit from second argument, and compute a cross validated example of such a transform.

Usage

fit_transform(vps, dframe, ..., weights = NULL, parallelCluster = NULL)

Arguments

vps

vtreat pipe step, object specifying fit.

dframe

data.frame, data to fit from.

...

not used, forces later arguments to bind by name.

weights

optional, per-dframe data weights.

parallelCluster

optional, parallel cluster to run on.

Details

Note: input vps is not altered, fit is in returned list.

Value

@return named list containing: treatments and cross_frame


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