topepo / C5.0

An R package for fitting Quinlan's C5.0 classification model
https://topepo.github.io/C5.0/
50 stars 20 forks source link

Different plots with the same code? #48

Open dr-jojo opened 1 year ago

dr-jojo commented 1 year ago

I ran a model with the c5.0 but when I plot it I get different results each time. Specifically the barplot on the terminal nodes change slightly. I attached a picture as an example. I may not be understanding something, but help would be appreciated. Thanks

sex.mod2.c5= C5.0(x=offenders.train.imp[c(-1, -2, -3, -4, -6, -7, -15, -50, -51)], y=offenders.train.imp$Sex, control = C5.0Control(winnow = TRUE, minCases = 10, noGlobalPruning = FALSE, seed = sample.int(12345, size = 1) - 1L))

plot(sex.mod2.c5)

Untitled