Merge pull request #867 from wyj2046/master

cause this code test pickle the booster, so change bst2 -> bst3
This commit is contained in:
Tianqi Chen 2016-02-25 20:25:47 -08:00
commit 61d9edcaa4

View File

@ -42,7 +42,7 @@ assert np.sum(np.abs(preds2-preds)) == 0
pks = pickle.dumps(bst2) pks = pickle.dumps(bst2)
# load model and data in # load model and data in
bst3 = pickle.loads(pks) bst3 = pickle.loads(pks)
preds3 = bst2.predict(dtest2) preds3 = bst3.predict(dtest2)
# assert they are the same # assert they are the same
assert np.sum(np.abs(preds3-preds)) == 0 assert np.sum(np.abs(preds3-preds)) == 0