📜  随机过采样 python 代码示例

📅  最后修改于: 2022-03-11 14:45:18.337000             🧑  作者: Mango

代码示例1
#In these examples, we will use the implementations provided by the imbalanced-learn Python library, which can be installed via pip as follows:


sudo pip install imbalanced-learn
#You can confirm that the installation was successful by printing the version of the installed library:

# check version number
import imblearn
print(imblearn.__version__)

# check version number
import imblearn
print(imblearn.__version__)