encode_onehot_fit: A fit function to encode categorical data

Description Usage Arguments Value

View source: R/CatEncodeFit.R

Description

Detects the categorical variables and treats it based on the fit file generated by train data using One-Hot Encoding.

Usage

1
encode_onehot_fit(df, colname, fit)

Arguments

df

Any dataset with atleast one categorical field

colname

A string representing the name of the categorical field in the given dataset

fit

A list returned from "BestCatEncode" that is used to fit the test data.

Value

Returns the encoded data vector


akunuriYoshitha/CatEncode documentation built on July 16, 2021, 4:16 p.m.