mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 07:46:22 +02:00
Update __init__.py
This commit is contained in:
parent
1fe037c5f9
commit
eda71a2cc1
1 changed files with 1 additions and 3 deletions
|
|
@ -55,9 +55,7 @@ def load(file_or_path):
|
|||
import pickle
|
||||
if isinstance(file_or_path, str):
|
||||
with open(file_or_path, 'rb') as f:
|
||||
u = pickle._Unpickler(f)
|
||||
u.encoding = 'latin1'
|
||||
m = u.load()
|
||||
m = pickle.load(f)
|
||||
else:
|
||||
m = pickle.load(file_or_path)
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue