binaryEncoder

fun binaryEncoder(schema: StructType, vararg columns: String): BinaryEncoder(source)

Encodes categorical features using sparse one-hot scheme.

Return

the BinaryEncoder.

Parameters

schema

the data frame schema.

columns

the column names of categorical variables. If empty, all categorical columns will be used.


fun DataFrame.binaryEncoder(vararg columns: String): BinaryEncoder(source)

Creates a binary encoder for this DataFrame.

Return

the BinaryEncoder.

Parameters

columns

the column names of categorical variables. If empty, all categorical columns will be used.