I’m not sure if this question is PyTorch-specific or rather targets sklearn or Python.
If your code is working fine in Python==3.7, I guess some underlying libraries, such as numpy or sklearn, were also updated?