Interface WeightedLabels
- All Known Implementing Classes:
LibLinearClassificationTrainer,LibSVMClassificationTrainer
public interface WeightedLabels
Tag interface denoting the
Trainer can use label weights.-
Method Summary
Modifier and TypeMethodDescriptionvoidsetLabelWeights(Map<Label, Float> map) Sets the label weights used by this trainer.
-
Method Details
-
setLabelWeights
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.
-