Package org.tribuo.classification
Class MutableLabelInfo
java.lang.Object
org.tribuo.classification.LabelInfo
org.tribuo.classification.MutableLabelInfo
- All Implemented Interfaces:
Serializable,MutableOutputInfo<Label>,OutputInfo<Label>
A mutable
LabelInfo. Can record new observations of Labels, incrementing the
appropriate counts.- See Also:
-
Field Summary
Fields inherited from class org.tribuo.classification.LabelInfo
labelCounts, labels, unknownCount -
Constructor Summary
ConstructorsConstructorDescriptionMutableLabelInfo(LabelInfo info) Constructs a mutable deep copy of the supplied label info. -
Method Summary
Methods inherited from class org.tribuo.classification.LabelInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getLabelCount, getLabelCount, getUnknownCount, outputCountsIterable, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tribuo.OutputInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size
-
Constructor Details
-
MutableLabelInfo
Constructs a mutable deep copy of the supplied label info.- Parameters:
info- The info to copy.
-
-
Method Details
-
observe
- Specified by:
observein interfaceMutableOutputInfo<Label>
-
clear
- Specified by:
clearin interfaceMutableOutputInfo<Label>
-
copy
- Specified by:
copyin interfaceOutputInfo<Label>- Specified by:
copyin classLabelInfo
-
toReadableString
- Specified by:
toReadableStringin interfaceOutputInfo<Label>
-
toString
-