scikit-learn

  • sklearn

    • preprocessing

      • MultiLabelBinarizer

        Transforms between iterable of iterables and a multilabel format (binary matrix)

    • utils

      • class_weight

        • compute_class_weight

          Estimate class weights for unbalanced datasets.