lishiwei2011 / gradientboostedmodels

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

Error in x[i] : object of type 'closure' is not subsettable #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I'm not yet sure how to reproduce this a simple, public data set, but the error 
has something to do with cross validation.

What is the expected output? What do you see instead?
Very quickly after starting GBM (before it does any training), I get this error:

Error in x[i] : object of type 'closure' is not subsettable

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

Please provide any additional information below.
I will attack the traceback which includes the gbm() invocation.  

If I hear you accept this bug, I am glad to continue to try to get the error to 
reproduce on your system.

As a workaround, is an old version of GBM available?  GBM 1.6 and GBM 2.0-8 
seemed OK, but the recent CRAN update is causing me problems.

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

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry, I forgot to mention this is 64-bit R for Windows 7.

Also, I meant is there a Windows binary package of an old GBM available?

Original comment by ahz...@gmail.com on 18 May 2013 at 4:16

GoogleCodeExporter commented 8 years ago
I am able to reproduce the error by loading the packages gbm and doSNOW.  This 
causes object masking, so I think the solution is to make an explicit reference 
to parLapply like parallel::parLapply().  Attached is the code and a log.

Original comment by ahz...@gmail.com on 28 May 2013 at 7:46

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for this. I'll take a look and presumably add parallel::parLapply as you 
suggest.

Old CRAN releases of gbm should be in the CRAN archive:
http://cran.r-project.org/src/contrib/Archive/gbm/

There are still some old non-CRAN releases available from the downloads page of 
this site.

Harry

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

GoogleCodeExporter commented 8 years ago
Please see new version of gbm linked from project home page. Let me know if you 
have any further problems.
Harry

Original comment by harry.southworth on 31 May 2013 at 11:37

GoogleCodeExporter commented 8 years ago
Fixed

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

GoogleCodeExporter commented 8 years ago

Original comment by harry.southworth on 26 Nov 2013 at 2:34