mlr-org / mlr3learners

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

e1071 fails on with logical matrix input #181

Closed mllg closed 3 years ago

mllg commented 3 years ago

MRE:

x = matrix(sample(c(TRUE, FALSE), 10, TRUE), ncol = 1)
y = runif(nrow(x))

# incorrect number of dimensions error
e1071::svm(x, y)

# fixed by converting to double
storage.mode(x) = "double"
e1071::svm(x, y)