Interface WeightedLabels

All Known Implementing Classes:
LibLinearClassificationTrainer, LibSVMClassificationTrainer

public interface WeightedLabels
Tag interface denoting the Trainer can use label weights.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sets the label weights used by this trainer.
  • Method Details

    • setLabelWeights

      void setLabelWeights(Map<Label,Float> map)
      Sets the label weights used by this trainer.

      Supply Collections.emptyMap() to turn off label weights.

      Parameters:
      map - A map from Label instances to weight values.