[Solved] ImportError: cannot import name ‘delayed‘ from ‘sklearn.utils.fixes‘

Problem Description:

Call imbalanced today_ An error is reported when the module is enabled:
importerror: cannot import name ‘delayed’ from ‘sklearn. Utils. Fixes’

Cause analysis:

Sklearn library, not updated in time. As a result, the sklearn.utils.fixes.py file does not have a delayed module.


Solution:

Update the sklearn library with the following command

conda update scikit-learn


Read More: