Technical requirements
In addition to the usual scikit-learn libraries, we will need the imblearn
(Imbalanced Learn) library to run the code in this chapter. This library helps us handle significant class imbalance. imblearn
can be installed with pip install imbalanced-learn
, or conda install -c conda-forge imbalanced-learn
if you are using Anaconda. All the code has been tested using scikit-learn versions 0.24.2 and 1.0.2.