public interface ImmutableOutputInfo<T extends Output<T>> extends OutputInfo<T>, Iterable<com.oracle.labs.mlrg.olcut.util.Pair<Integer,T>>
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.
Modifier and Type | Method and Description |
---|---|
int |
getID(T output)
Return the id number associated with this output, or -1 if the output is unknown.
|
T |
getOutput(int id)
Returns the output associated with this id, or null if the id is unknown.
|
long |
getTotalObservations()
Returns the total number of observed outputs seen by this ImmutableOutputInfo.
|
copy, generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size, toReadableString
forEach, iterator, spliterator
int getID(T output)
output
- An outputT getOutput(int id)
id
- A non-negative integer.long getTotalObservations()
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.