79417543

Date: 2025-02-06 10:35:19
Score: 1.5
Natty:
Report link

It turns out I was using the wrong argument: it should have been newdata, not newx. So:

predict(svm_fit, newdata=dfm_val, type="class")

Gives the expected result of predictions on the validation data.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Clara