mlr-org / mlr3learners

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

svm predict fails with callr #224

Closed be-marc closed 2 years ago

be-marc commented 2 years ago

The feature names of the task are written to the state of the learner in $.train() but the state is not exported from the callr session. Only the fitted model is sent back the main R session. Predicting fails because learner$state$feature_names is empty.

https://github.com/mlr-org/mlr3learners/blob/fe8d03fadf2900224c9af0dbe236207291ed9d32/R/LearnerClassifSVM.R#L79

mllg commented 2 years ago

Fixed in eae2c14.