public abstract class ClusteringInfo extends Object implements OutputInfo<ClusterID>
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,com.oracle.labs.mlrg.olcut.util.MutableLong> |
clusterCounts |
protected int |
unknownCount |
Modifier and Type | Method and Description |
---|---|
abstract ClusteringInfo |
copy()
Generates a copy of this OutputInfo, including it's mutability.
|
ImmutableOutputInfo<ClusterID> |
generateImmutableOutputInfo()
Generates an
ImmutableOutputInfo which has a copy of the data
in this OutputInfo , but also has id values and is immutable. |
MutableOutputInfo<ClusterID> |
generateMutableOutputInfo()
Generates a mutable copy of this
OutputInfo . |
Set<ClusterID> |
getDomain()
|
int |
getUnknownCount()
Returns the number of unknown
Output instances (generated by OutputFactory.getUnknownOutput() )
that this OutputInfo has seen. |
Iterable<com.oracle.labs.mlrg.olcut.util.Pair<String,Long>> |
outputCountsIterable()
An Iterable over the possible outputs and the number of times they were observed.
|
int |
size()
Returns the number of possible values this OutputInfo knows about.
|
String |
toReadableString()
Generates a String form of this OutputInfo.
|
protected final Map<Integer,com.oracle.labs.mlrg.olcut.util.MutableLong> clusterCounts
protected int unknownCount
public int getUnknownCount()
OutputInfo
Output
instances (generated by OutputFactory.getUnknownOutput()
)
that this OutputInfo has seen.getUnknownCount
in interface OutputInfo<ClusterID>
public Set<ClusterID> getDomain()
OutputInfo
Output
which represent the space of possible
values the Output
has taken.
For real values this set represents the number of dimensions observed.
getDomain
in interface OutputInfo<ClusterID>
T
.public int size()
OutputInfo
For real values this is the number of dimensions observed.
size
in interface OutputInfo<ClusterID>
public ImmutableOutputInfo<ClusterID> generateImmutableOutputInfo()
OutputInfo
ImmutableOutputInfo
which has a copy of the data
in this OutputInfo
, but also has id values and is immutable.generateImmutableOutputInfo
in interface OutputInfo<ClusterID>
public MutableOutputInfo<ClusterID> generateMutableOutputInfo()
OutputInfo
OutputInfo
.generateMutableOutputInfo
in interface OutputInfo<ClusterID>
public abstract ClusteringInfo copy()
OutputInfo
copy
in interface OutputInfo<ClusterID>
public Iterable<com.oracle.labs.mlrg.olcut.util.Pair<String,Long>> outputCountsIterable()
OutputInfo
Provides similar functionality to an iterator over the entrySet of a Map, though this is a copy of the data and immutable.
outputCountsIterable
in interface OutputInfo<ClusterID>
public String toReadableString()
OutputInfo
This String can contain newlines, tabs and other formatting.
toReadableString
in interface OutputInfo<ClusterID>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.