prep_numeric: Preps numeric targets using vtreat using cross frames and and...

Description Usage Arguments Value

View source: R/data_prep.R

Description

Preps numeric targets using vtreat using cross frames and and fixes names to my preferences. Assumes there is a variable named "target" in the input data.frame

Usage

1
2
3
4
5
6
7
prep_numeric(
  df_train,
  df_test,
  ncross = 5,
  use_parallel = F,
  var_types_return = c("clean", "isBAD", "catN")
)

Arguments

df_train

Training data.frame.

df_test

Testing data.frame.

ncross

Number of cross validation frames in treatment design.

use_parallel

Logical, if TRUE use parallel methods.

var_types_return

Specifies what types of variables to produce (character array of level codes, NULL means no restriction).

Value

List with cross validation fold indices


prescient/modelpipe documentation built on Dec. 25, 2019, 3:20 a.m.