load pickle to a variable
import pickle
with open(filename, 'rb') as f:
var_you_want_to_load_into = pickle.load(f)
load pickle to a variable
import pickle
with open(filename, 'rb') as f:
var_you_want_to_load_into = pickle.load(f)
how to save python variables locally
with open('train.pickle', 'wb') as f:
pickle.dump([X_train, y_train], f)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us