From Andrew.Reynolds at illuminas.com Wed Apr 1 16:00:56 2015 From: Andrew.Reynolds at illuminas.com (Andrew Reynolds) Date: Wed, 1 Apr 2015 14:00:56 +0000 Subject: [R-marketing-bugs] RF code Message-ID: <1b5f3fd21d10472b9d1ab8bdee8f5895@THHSTE15D3BE7.hs20.net> 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 ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnchapman at gmail.com Wed Apr 1 18:18:19 2015 From: cnchapman at gmail.com (Chris Chapman) Date: Wed, 1 Apr 2015 09:18:19 -0700 Subject: [R-marketing-bugs] RF code In-Reply-To: <1b5f3fd21d10472b9d1ab8bdee8f5895@THHSTE15D3BE7.hs20.net> References: <1b5f3fd21d10472b9d1ab8bdee8f5895@THHSTE15D3BE7.hs20.net> Message-ID: 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: