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

前端 未结 2 372
一整个雨季
一整个雨季 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.

    0 讨论(0)
  • 2020-12-03 14:43

    For ease, please use python 64 bit version to decentralize your model. I faced the same issue recently. after taking that step it was resolved.

    So try running it on a 64 bit version. I hope this helps

    0 讨论(0)
提交回复
热议问题