Imbalance in scikit-learn

前端 未结 5 546
北恋
北恋 2021-01-31 08:35

I\'m using scikit-learn in my Python program in order to perform some machine-learning operations. The problem is that my data-set has severe imbalance issues.

Is anyone

5条回答
  •  孤城傲影
    2021-01-31 08:47

    SMOTE is not a builtin in scikit-learn, but there are implementations available online nevertheless.

    Edit: The discussion with a SMOTE implementation on GMane that I originally linked to, appears to be no longer available. The code is preserved here.

    The newer answer below, by @nos, is also quite good.

提交回复
热议问题