cardillo / joinery

Data frames for Java
https://joinery.sh
GNU General Public License v3.0
700 stars 166 forks source link

Implementation of 'toModelMatrix' method to export DataFrame as a model matrix #44

Closed lejon closed 9 years ago

lejon commented 9 years ago

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.