I got this error "ValueError: Buffer dtype mismatch, expected 'ITYPE_t' but got 'long long'" when I try to load a ML model.
- I trained a classifier model (knn) and save it on a PC.
- Then, when I try to test saved model in another PC, I got this error.
My Code to Save a Model
dill.dump(src_model, open(filename, 'wb'))
My Code to load a Model
LOADED_MODEL = pickle.load(open(filename, 'rb'))
Also I tried joblib, ubjson, dill and I got the same error.