Solved: The problem arose because the sklearn version used to train the model was old, whereas the version used by Heroku to load the model was the newer one, so need to make sure the requirement.txt has the same version used to train the model.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…