I'm using python3.5 on Ubuntu. I trained a model by xgboost sklearn wrapper and save it by pickle.
Here is a link of the pickle file: https://pan.baidu.com/s/1eSoPWxs
The question is each time I load it, the result is different.
For example:
a = pickle.load(open('mymodel', 'rb'))
b = pickle.load(open('mymodel', 'rb'))
print(a == b)
I got result False
, but I think it should be True
.
Can anybody explain this? Is there any way to solve this?
Thanks a lot!
Finally I found the problem, which is nothing to do with pickle. There is something else which causes some randomization in each running.
Thanks for help! Sorry for bothering!
Ben