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.