public final class MutableAnomalyInfo extends AnomalyInfo implements MutableOutputInfo<Event>
MutableOutputInfo
object for Event
s.
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.
anomalyCount, expectedCount, unknownCount
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the OutputInfo, removing all things it's observed.
|
MutableAnomalyInfo |
copy()
Generates a copy of this OutputInfo, including it's mutability.
|
void |
observe(Event output)
Records an output value or statistics thereof.
|
generateImmutableOutputInfo, generateMutableOutputInfo, getAnomalyCount, getDomain, getEventCount, getExpectedCount, getUnknownCount, outputCountsIterable, size, toReadableString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size, toReadableString
public void observe(Event output)
MutableOutputInfo
observe
in interface MutableOutputInfo<Event>
output
- The observed output.public void clear()
MutableOutputInfo
clear
in interface MutableOutputInfo<Event>
public MutableAnomalyInfo copy()
OutputInfo
copy
in interface OutputInfo<Event>
copy
in class AnomalyInfo
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.