Class MutableMultiLabelInfo
java.lang.Object
org.tribuo.multilabel.MultiLabelInfo
org.tribuo.multilabel.MutableMultiLabelInfo
- All Implemented Interfaces:
Serializable,MutableOutputInfo<MultiLabel>,OutputInfo<MultiLabel>
A MutableOutputInfo for working with multi-label tasks.
- See Also:
-
Field Summary
Fields inherited from class org.tribuo.multilabel.MultiLabelInfo
labelCounts, labels, totalCount, unknownCount -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a MutableMultiLabelInfo with it's state copied from another MultiLabelInfo. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the OutputInfo, removing all things it's observed.copy()Generates a copy of this OutputInfo, including it's mutability.voidobserve(MultiLabel output) Throws IllegalStateException if the MultiLabel contains a Label which has a "," in it.Generates a String form of this OutputInfo.toString()Methods inherited from class org.tribuo.multilabel.MultiLabelInfo
equals, generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getLabelCount, getLabelCount, getUnknownCount, hashCode, outputCountsIterable, sizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tribuo.OutputInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size
-
Constructor Details
-
MutableMultiLabelInfo
Construct a MutableMultiLabelInfo with it's state copied from another MultiLabelInfo.- Parameters:
info- The info to copy.
-
-
Method Details
-
observe
Throws IllegalStateException if the MultiLabel contains a Label which has a "," in it.Such labels are disallowed. There should be an exception thrown when one is constructed too.
- Specified by:
observein interfaceMutableOutputInfo<MultiLabel>- Parameters:
output- The observed output.
-
clear
public void clear()Description copied from interface:MutableOutputInfoClears the OutputInfo, removing all things it's observed.- Specified by:
clearin interfaceMutableOutputInfo<MultiLabel>
-
copy
Description copied from interface:OutputInfoGenerates a copy of this OutputInfo, including it's mutability.- Specified by:
copyin interfaceOutputInfo<MultiLabel>- Specified by:
copyin classMultiLabelInfo- Returns:
- A copy of the OutputInfo.
-
toReadableString
Description copied from interface:OutputInfoGenerates a String form of this OutputInfo.This String can contain newlines, tabs and other formatting.
- Specified by:
toReadableStringin interfaceOutputInfo<MultiLabel>- Returns:
- A formatted String representing this OutputInfo.
-
toString
-