nok / sklearn-porter

Transpile trained scikit-learn estimators to C, Java, JavaScript and others.
BSD 3-Clause "New" or "Revised" License
1.28k stars 170 forks source link

RandomForestClassifier export #69

Closed Vasilissk-prog closed 2 years ago

Vasilissk-prog commented 4 years ago

Hi and thank you very much for your contribution.

I am trying to export a RandomForestClassifier( n_estimators= 100, max_features = 'sqrt',max_depth=100, n_jobs=-1, verbose = 1) , but I think that my laptop runs out of memory. Do you think that I can try in a server with better specifications or only option is to reduce n_estimators and max_depth?

nok commented 2 years ago

Hello @Vasilissk-prog ,

yes, either you increase your memory (RAM) resources (e.g. by switching your device) or decrease the number of n_estimators and max_depth.

Kind regards, Darius