0

I have a trained random forest regressor from scikit-learn:

https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html

I then want to make use of (but not train further) this regressor in an existing program that is written in a combination of Fortran and C++. Is there any existing reasonably simple way of evaluating a pre-trained random forest in either Fortran or C++?

Otherwise I guess one could use code-generation to specifically generate code that implements the trained forest with hard-coded parameters in the generated code.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.