encode_onehot: One-Hot Encoding

Description Usage Arguments Value

View source: R/CatEncodePrerequisites.R

Description

Takes in a vector and encodes using One-Hot Encoding

Usage

1
encode_onehot(df, colname)

Arguments

df

A dataset with atleast one categorical field

colname

A string with field name of categorical field

Value

Returns a list with encoded data and fit file to fit the test data


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