encode_binary_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 Binary Encoding.

Usage

1
encode_binary_fit(x, colname, fit)

Arguments

x

Any data vector which needs to be encoded

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.