df_ps_train_ori = pd.read_hdf('model/df_ps_train_new.hdf') pickle_path = 'model/giantMatrix_new.pickle' with open(pickle_path, 'rb') as f: ps_matrix_ori = pickle.load(f)