Technical requirements
In addition to the scikit-learn modules we have been using so far, we will use SMOTENC from Imbalanced-learn. We will use SMOTENC to address class imbalance. The Imbalanced-learn library can be installed with pip install -U imbalanced-learn
. All the code in this chapter was tested with scikit-learn versions 0.24.2 and 1.0.2.