R minitip: don’t use data.matrix when you mean model.matrix
Win-Vector Blog 2014-06-10
Summary:
A quick R mini-tip: don’t use data.matrix when you mean model.matrix. If you do so you may lose (without noticing) a lot of your model’s explanatory power (due to poor encoding). For some modeling tasks you end up having to prepare a special expanded data matrix before calling a given machine learning algorithm. For example […]