Class MultiLabelBinarizer


  • public class MultiLabelBinarizer
    extends TransformerMixin<List<Set<Object>>,​NumpyArray<Long>>
    Transform between iterable of iterables and a multilabel format. Although a list of sets or tuples is a very intuitive format for multilabel data, it is unwieldy to process. This transformer converts between this intuitive format and the supported multilabel format: a (samples x classes)
    • Constructor Detail

      • MultiLabelBinarizer

        public MultiLabelBinarizer()
        Instantiate a new object of MultiLabelBinarizer.
    • Method Detail

      • setClasses

        public void setClasses​(List<Object> value)
        Sets the A copy of the `classes` parameter when provided. Otherwise it corresponds to the sorted set of classes found when fitting.
        Parameters:
        value - The new value for classes.
      • getClasses

        public List<Object> getClasses()
        Gets the A copy of the `classes` parameter when provided. Otherwise it corresponds to the sorted set of classes found when fitting.
      • setCachedDict

        public void setCachedDict​(Map<String,​Object> value)
        Sets the value of CachedDict
        Parameters:
        value - The new value for CachedDict.
      • getCachedDict

        public Map<String,​Object> getCachedDict()
        Gets the value of CachedDict