Skip to main content
added 263 characters in body; edited tags
Source Link
Tor
  • 803
  • 9
  • 23

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 Fortran program that is written in a combination of Fortran and C++. Is there any existing reasonably simple way of doing thisevaluating 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.

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 Fortran program. Is there any existing reasonably simple way of doing this?

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.

Source Link
Tor
  • 803
  • 9
  • 23

Evaluating pre-trained random forest in Fortran

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 Fortran program. Is there any existing reasonably simple way of doing this?