R predict functions in Modeler 17

Hi, I have been running R scripts for linear/logistic regressions, decision trees and SVM models, but when I want to score the predict functions do not work for SVM and decision trees library C50. I tried party and worked.

Using library C50 and bankloan.sav dataset I used this code in the building syntax box: (I used the R syntax from the CRAN document of the library) library(C50) modelerData$default <- factor(modelerData$default) modelerModel <- C5.0(modelerData[-9],modelerData$default) modelerModel summary(modelerModel) plot(modelerModel)

1 reply

Note that the building and the scoring syntax are 2 independent R scripts (only the modelerModel object is the thing that is linking both). So that means you have to load again your library in the scoring.