Scikits-Learn RandomForrest trained on 64bit python wont open on 32bit python

前端 未结 2 384
一整个雨季
一整个雨季 2020-12-03 14:19

I train a RandomForestRegressor model on 64bit python. I pickle the object. When trying to unpickle the object on 32bit python I get the following error:

\'ValueErro

2条回答
  •  臣服心动
    2020-12-03 14:42

    This occurs because the random forest code uses different types for indices on 32-bit and 64-bit machines. This can, unfortunately, only be fixed by overhauling the random forests code. Since several scikit-learn devs are working on that anyway, I put it on the todo list.

    For now, the training and testing machines need to have the same pointer size.

提交回复
热议问题