I have a random forest model that I’ve trained in python 3.12.0 with scikit-learn 1.3.0. I’m trying to then export the model weights to excel with skompiler 0.7. I’m getting the RecursionError below when I run the code below. Do you have any idea what the issue might be and can you suggest how to fix it? rf is the pretrained random forest model.
code:
from skompiler import skompile
from skompiler.fromskast.excel import excel_range
expr = skompile(rf.predict,excel_range(f"B3:BQ3")
code = expr.to('excel', multistage=True, assign_to=exccel_range('BT3:*3'))
error:
RecursionError: maximum recursion depth exceeded