Closed ZekeMarshall closed 1 month ago
You are missing some necessary preprocessing steps on the test
data before feeding into the predict function. You can check out the code here: https://github.com/mlr-org/mlr3learners/blob/b58ba3b0a529bb39ebfdaee3db81d3229b3f09ad/R/LearnerClassifSVM.R#L71-L84
Hi @sebffischer , thanks for pointing this out! it was just a case of re-ordering the variables to match the support vectors. Thanks again!
Hi!
I'd like to extract a model from a {mlr3} learner, however the predictions generated from the extracted model are incorrect and do not match the predictions generated from the learner. Please see a reprex below.
I think this is probably a case of user error, but I can't figure out what's going on!
Any help would be greatly appreciated and sorry if I've missed something obvious!
Best regards,
Zeke