lishiwei2011 / gradientboostedmodels

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

Error in cut.default(i, breaks) : 'breaks' are not unique #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I ran gbm() with 
max.trees: 500
interaction.depth: 3
shrinkage: 0.1
bag fraction: 1
cv folds: 5
n.cores=3
distribution="bernoulli"
train.fraction = 1
n.minobsinnode = 15

What is the expected output? 
Something like this
Iter   TrainDeviance   ValidDeviance   StepSize   Improve
     1        1.6876             nan     0.1000    0.0981
     2        1.4814             nan     0.1000    0.3318

What do you see instead?
Cross validating:  1 2 3 
Error in cut.default(i, breaks) : 'breaks' are not unique

What version of the product are you using? On what operating system?
gbm 2.0-9.5 Windows binary from 
https://code.google.com/p/gradientboostedmodels/downloads/detail?name=gbm_2.0-9.
5.zip&can=2&q=
R 2.15.3 64-bit
Windows 7 64-bit
4 physical CPUs
8 logical CPUs

Please provide any additional information below.
Even after adjusting some settings, I cannot reproduce this error using the gbm 
example code and data in the gbm documentation.

Original issue reported on code.google.com by ahz...@gmail.com on 9 May 2013 at 2:38

GoogleCodeExporter commented 8 years ago
It also happens with n.cores=5 and cv.folds=5
Cross validating:  1 2 3 4 5 
Error in cut.default(i, breaks) : 'breaks' are not unique

I don't see where cut is being called in the gbm source. 

Using a different data set (etitantic from earth), I don't get this error.  My 
data set is 3711104 rows x 181 columns.

Original comment by ahz...@gmail.com on 9 May 2013 at 2:59

GoogleCodeExporter commented 8 years ago
Unless I set n.cores=1, I am seeing the same error "breaks are not unique" with 
gbm 2.1, R 2.15.3, and a different data set.  

Original comment by ahz...@gmail.com on 17 May 2013 at 10:53

GoogleCodeExporter commented 8 years ago
See Issue 24

Original comment by schneide...@gmail.com on 29 May 2013 at 7:36

GoogleCodeExporter commented 8 years ago
Seems OK in gbm_2.1-0.1.zip 

Original comment by ahz...@gmail.com on 7 Jun 2013 at 10:51