Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import pickle
  2. with open('filename','w') as f:
  3. pickle.dump(model, f)
  4.  
  5. 'utf-8' codec can't decode byte 0x86 in position 4: invalid start byte
  6.  
  7. import pickle
  8. with open('filename','rb') as f:
  9. model = pickle.load(f, encoding='UTF-8')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement