[R-marketing-bugs] RF code

Chris Chapman cnchapman at gmail.com
Wed Apr 1 18:18:19 CEST 2015


You are right, somehow that line was omitted from the book (it's in the .R
file, however). Specifically, it should read:

seg.rf.class <- predict(seg.rf, seg.df.test)     # <=== the line to add

library(cluster)
clusplot(seg.df.test[, -7], seg.rf.class, color=TRUE, shade=TRUE,
         labels=4, lines=0, main="Random Forest classification, holdout
data")

Thanks for the note! I'll add it to the Errata (as confirmed fix #1),

-- Chris


On Wed, Apr 1, 2015 at 7:00 AM, Andrew Reynolds <
Andrew.Reynolds at illuminas.com> wrote:

>  Hi,
>
>
>
> I think the code line
>
>
>
> seg.rf.class<-predict(seg.rf, seg.df.test)
>
>
>
> or similar, was omitted prior to
>
>
>
> clusplot(seg.df.test[,-7],seg.rf.class, color=TRUE, shade=TRUE,
>
>          labels=4, lines=0,
>
>          main="Random Forest classification, holdout data"
>
>          )
>
>
>
> on page 329.
>
>
>
> Regards
>
>
>
> Andrew
>
>
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>
> _______________________________________________
> R-marketing-bugs mailing list
> R-marketing-bugs at lists.r-forge.r-project.org
>
> http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/r-marketing-bugs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/r-marketing-bugs/attachments/20150401/b51518f6/attachment.html>


More information about the R-marketing-bugs mailing list