Skip to content

Commit

Permalink
Fixed pickle load encoding from utf-8 to raw binary
Browse files Browse the repository at this point in the history
  • Loading branch information
tgsmith61591 committed Nov 12, 2016
1 parent bfed8b1 commit eb484fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion skutil/h2o/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ class that is being loaded should be statically referenced at the level of
m : BaseH2OFunctionWrapper
The unpickled instance of the model
"""
with open(location) as f:
with open(location, 'rb') as f:
m = pickle.load(f)
return m

Expand Down
2 changes: 1 addition & 1 deletion skutil/h2o/grid_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ def load(location):
model : BaseH2OSearchCV
The unpickled instance of the BaseH2OSearchCV model
"""
with open(location) as f:
with open(location, 'rb') as f:
model = pickle.load(f)

if not isinstance(model, BaseH2OSearchCV):
Expand Down
2 changes: 1 addition & 1 deletion skutil/h2o/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def load(location):
model : H2OPipeline
The unpickled instance of the H2OPipeline model
"""
with open(location) as f:
with open(location, 'rb') as f:
model = pickle.load(f)

if not isinstance(model, H2OPipeline):
Expand Down

0 comments on commit eb484fd

Please sign in to comment.