tag:blogger.com,1999:blog-7994087232040033267.post1395123241933484775..comments2018-07-22T23:11:24.551-07:00Comments on Pragmatic Programming Techniques: Predictive Analytics: Generalized Linear RegressionRicky Hohttp://www.blogger.com/profile/03793674536997651667noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-7994087232040033267.post-74204341280923090322014-01-25T19:18:37.818-08:002014-01-25T19:18:37.818-08:00Shameek, that line you were wondering about is a w...Shameek, that line you were wondering about is a way of selecting every fifth data element.<br />After that line, testidx is just c(5, 10, 15, ... , 150), a list of the indices of every fifth index.<br />The following lines then select all the data with these indices to be the test set, and all the other data will be the training data.Rafael Espericuetahttps://www.blogger.com/profile/15605719453112562680noreply@blogger.comtag:blogger.com,1999:blog-7994087232040033267.post-61350084698906396802013-09-06T04:50:39.842-07:002013-09-06T04:50:39.842-07:00Hi Ricky,
Many thanks for this blog. I am new to ...Hi Ricky,<br /><br />Many thanks for this blog. I am new to R and trying to learn data mining using R by myself. I found this blog to be extremely useful. However, could you please explain a but about this line:<br /><br />testidx <- which(1:length(iris[,1])%%5 == 0<br />[,1] is mentioning to first column in iris dataset but I didn't get he meaning of the whole line. I would be grateful if you can explain this code.<br />Many thanks in advance.Shameek Mukherjeehttps://www.blogger.com/profile/11860374454211641926noreply@blogger.comtag:blogger.com,1999:blog-7994087232040033267.post-36368249453686236502013-07-19T15:27:50.889-07:002013-07-19T15:27:50.889-07:00ricky your blog is excellent.
you should consider ...ricky your blog is excellent.<br />you should consider writing a book!Bruce Leehttps://www.blogger.com/profile/04712561635511828693noreply@blogger.com