В Fri, 22 Sep 2023 10:12:51 +0000 "Milbert, Sabine (LGL)" <[email protected]> пишет:
> PS: If this is an issue based on the model training function of the > caret package and therefore not your responsibility, please let us > know. Indeed, as Rui Barradas said, predict() is a generic function. Calling it with your model as an argument resolves to a function in the caret package. It's hard to say without looking at your code and data (the R-help posting guide has some hints on how to prepare a reproducible example), but I think that the caret package fits your linear SVM models using kernlab::ksvm, and then predict() resolves to a combination of kernlab::predict (potentially with the argument type = "probabilities") and kernlab::lev. Try replicating your results using just the kernlab package. -- Best regards, Ivan ______________________________________________ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

