forum.alglib.net
http://forum.alglib.net/

ap_error
http://forum.alglib.net/viewtopic.php?f=2&t=4651
Page 1 of 1

Author:  Monique31 [ Tue Jan 14, 2025 12:00 pm ]
Post subject:  ap_error

I am training a random forest with 10 features and 1 continuous target variable. When I train the random forest with 10 trees, everything works successfully. When I increase the number of trees to 50 or 100, I get ap_error.

my code is:

ae_int_t ntrees = 50;
ae_int_t mtry = 6;
fraction = 0.5;
decisionforestbuilder builder;
ae_int_t nvars = 10;
ae_int_t nclasses = 1;
ae_int_t npoints = train_size;

dfbuildercreate(builder);
dfbuildersetdataset(builder, train_data, npoints, nvars, nclasses);
dfbuildersetrndvars(builder,mtry);
dfbuildersetseed(builder, 1);
dfbuildersetsubsampleratio(builder, fraction);
dfreport rep;
dfbuilderbuildrandomforest(builder, ntrees, model, rep);

What can this error be?

Author:  Monique31 [ Tue Jan 14, 2025 12:05 pm ]
Post subject:  Re: ap_error

Using a try and catch block, I got:


error msg: ae_malloc(): out of memory

What should I do?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/