DrugEx
DrugEx copied to clipboard
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 63: ordinal not in range(128)
in drugex2,I've met this issue:
Traceback (most recent call last):
File "F:\drugex-v2.0\drugex-v2.0\trainer.py", line 27, in
Firstly, you have to check how you dumped your machine learning pkl model ever before with pickle?
This is what I did in the environ.py.
joblib.dump(model, out, compress=3)
param model: machine learning model with scikit-learn package. param out: the file path with string format
Maybe you also try the following code to replace line 27 in objective.py, if you dump you model with pickle.
import pickle file = open(path, 'rb') self.model = pickle.load(file)