diff --git a/code/logistic_sgd.py b/code/logistic_sgd.py index 9f4427e7..2a35693b 100644 --- a/code/logistic_sgd.py +++ b/code/logistic_sgd.py @@ -453,7 +453,7 @@ def predict(): """ # load the saved model - classifier = pickle.load(open('best_model.pkl')) + classifier = pickle.load(open('best_model.pkl', 'rb')) # compile a predictor function predict_model = theano.function(