carolssnz / gradientboostedmodels

Automatically exported from code.google.com/p/gradientboostedmodels
0 stars 0 forks source link

object 'p' not found when cv.folds=1 #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the attached script with cv.folds=1

What is the expected output? What do you see instead?
Error in gbm(mydata[TRUE, "survived"] ~ ., data = mydata2, distribution = 
"bernoulli",  : 
  object 'p' not found

There should be a sanity check like stopifnot(cv.folds>=2 |cv.folds==0)

What version of the product are you using? On what operating system?
R 2.15.3 and R 3.0.0
gbm 2.1

Please provide any additional information below.
Minor issue

Original issue reported on code.google.com by ahz...@gmail.com on 18 May 2013 at 4:03

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for this. It will be fixed in a future release.

You specified cv.folds=1 which means the same as cv.folds=0 (the default). If 
you just use the default, the error will not occur. Nevertheless, it will be 
fixed in a future release.

Harry

Original comment by harry.southworth on 31 May 2013 at 8:26