For character columns, if uniqueN(column)/nrow < 0.2 then make the column a factor. Generalizing current binary argument to a scale between FALSE (0.0) and TRUE (1.0).
Request came up for onwards model build which switches based on character / factor type.
No change to default FALSE.
For character columns, if
uniqueN(column)/nrow < 0.2then make the column a factor. Generalizing current binary argument to a scale between FALSE (0.0) and TRUE (1.0).Request came up for onwards model build which switches based on character / factor type.
No change to default FALSE.