Class MutableAnomalyInfo
java.lang.Object
org.tribuo.anomaly.AnomalyInfo
org.tribuo.anomaly.MutableAnomalyInfo
- All Implemented Interfaces:
Serializable,MutableOutputInfo<Event>,OutputInfo<Event>
An
MutableOutputInfo object for Events.
Counts the number of Event.EventType.ANOMALOUS, Event.EventType.EXPECTED
and Event.EventType.UNKNOWN outputs observed. The unknown output is invalid
at training time, and used as a prediction time sentinel (similarly to other Tribuo
prediction tasks).
Anomaly detection has a fixed domain, so it will throw IllegalArgumentException
if you somehow modify the Event.EventType enum to add a new value.
- See Also:
-
Field Summary
Fields inherited from class org.tribuo.anomaly.AnomalyInfo
anomalyCount, expectedCount, unknownCount -
Method Summary
Methods inherited from class org.tribuo.anomaly.AnomalyInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getAnomalyCount, getDomain, getEventCount, getExpectedCount, getUnknownCount, outputCountsIterable, size, toReadableStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tribuo.OutputInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size, toReadableString
-
Method Details
-
observe
Description copied from interface:MutableOutputInfoRecords an output value or statistics thereof.- Specified by:
observein interfaceMutableOutputInfo<Event>- Parameters:
output- The observed output.
-
clear
Description copied from interface:MutableOutputInfoClears the OutputInfo, removing all things it's observed.- Specified by:
clearin interfaceMutableOutputInfo<Event>
-
copy
Description copied from interface:OutputInfoGenerates a copy of this OutputInfo, including it's mutability.- Specified by:
copyin interfaceOutputInfo<Event>- Specified by:
copyin classAnomalyInfo- Returns:
- A copy of the OutputInfo.
-