Interface ImmutableOutputInfo<T extends Output<T>>
- All Superinterfaces:
Iterable<com.oracle.labs.mlrg.olcut.util.Pair<Integer,
,T>> OutputInfo<T>
,Serializable
- All Known Implementing Classes:
ImmutableAnomalyInfo
,ImmutableClusteringInfo
,ImmutableLabelInfo
,ImmutableMultiLabelInfo
,ImmutableRegressionInfo
public interface ImmutableOutputInfo<T extends Output<T>>
extends OutputInfo<T>, Iterable<com.oracle.labs.mlrg.olcut.util.Pair<Integer,T>>
An
OutputInfo
that is fixed, and contains an id number for each valid output.
In the case of real valued outputs, the id number represents the dimension.
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the id number associated with this output, or -1 if the output is unknown.getOutput
(int id) Returns the output associated with this id, or null if the id is unknown.long
Returns the total number of observed outputs seen by this ImmutableOutputInfo.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.tribuo.OutputInfo
copy, generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size, toReadableString
-
Method Details
-
getID
-
getOutput
-
getTotalObservations
long getTotalObservations()Returns the total number of observed outputs seen by this ImmutableOutputInfo.- Returns:
- The number of observed outputs.
-