This commit implements a toModelMatrix method which is very useful when using DataFrame in ML contexts where you want to encode nominal values into dummy variables and adding an intercept column. This implementation supports both, but not ordinal values.
This commit implements a toModelMatrix method which is very useful when using DataFrame in ML contexts where you want to encode nominal values into dummy variables and adding an intercept column. This implementation supports both, but not ordinal values.