I am trying to read and load a pickle file. Even though the pickle object I am trying to pass as argument is not empty I am getting this issue.
Code:
model = pickle.load(open('ridge-model.pkl', 'rb'))
Error:
EOFError: Ran out of input
I am trying to read and load a pickle file. Even though the pickle object I am trying to pass as argument is not empty I am getting this issue.
Code:
model = pickle.load(open('ridge-model.pkl', 'rb'))
Error:
EOFError: Ran out of input
You get that error when the file you are trying to load with pickle
is empty.
So make sure that there's things written into 'ridge-model.pkl'
.