Ahmedserag777 / randomforest-matlab

Automatically exported from code.google.com/p/randomforest-matlab
0 stars 0 forks source link

calling this code in c++or csharp #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I want to avoid the "out of memory" err in matlab,so I want to use c++ 
or csharp to calling this code.How about your advise?

Original issue reported on code.google.com by crazy...@126.com on 17 Mar 2010 at 1:59

GoogleCodeExporter commented 8 years ago
Take a look into the twonorm_C_wrapper example 
http://code.google.com/p/randomforest-
matlab/source/browse/trunk/RF_Class_C/src/twonorm_C_wrapper.cpp

Do realize that the only way to avoid reasonably the out of memory is to use a 
64-bit 
OS.

Matlab and C with the same program data will have a difference of about 200MB 
at the 
most. matlab -nojvm on the command prompt will allow you to get more memory 
compared 
to with the gui

Only with 64-bit OS you can go with program sizes greater than 2.3GB or so. To 
give 
an example, i sometimes run datasets of size 10000x10000 and more than 1000 
trees 
routinely without problems on 64-bit linux.

Original comment by abhirana on 17 Mar 2010 at 6:22

GoogleCodeExporter commented 8 years ago

Original comment by abhirana on 31 Mar 2012 at 8:37