Understand classification probability estimation in svm_rbf
mainThe kernlab engine does not natively estimate class probabilities. When set_mode("classification") is used with a prediction type of prob, parsnip uses Platt scaling.
Platt scaling works by fitting an additional model on top of the SVM model to convert decision values into probabilities.
Important: The Platt scaling process uses random numbers that are not controlled by R's standard random number stream, which may affect reproducibility.