mlr-org / mlr3learners

Recommended learners for mlr3
https://mlr3learners.mlr-org.com
GNU Lesser General Public License v3.0
91 stars 16 forks source link

nnet learner should support 'logical' features #314

Closed mb706 closed 1 month ago

mb706 commented 1 month ago

I believe nnet uses model.matrix() together with the given formula to convert incoming data to a numeric matrix. As far as I can see, this can handle logical features, so classif.nnet and regr.nnet 'feature_types' should include 'logical'.

be-marc commented 1 month ago

Thanks. Done.