public class ClusterEvalDataset extends MapBackedDataset<String,ListBackedDataset<Integer>,Integer>
MapBackedDataset.IdentifiableBuilder<DATASET extends Dataset<INSTANCE> & Identifiable,INSTANCE>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
map
Constructor and Description |
---|
ClusterEvalDataset(File f)
Load this file as a dataset
|
ClusterEvalDataset(InputStream is)
Read the clusters from this stream
|
ClusterEvalDataset(String loc)
Read from this file location
|
Modifier and Type | Method and Description |
---|---|
int[][] |
toClusters() |
add, builder, entrySet, getGroups, getInstances, getMap, getRandomInstance, getRandomInstance, iterator, numInstances, of, of, of, of, of, of, of, put, toString
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public ClusterEvalDataset(String loc) throws IOException
loc
- IOException
public ClusterEvalDataset(File f) throws IOException
f
- IOException
public ClusterEvalDataset(InputStream is) throws IOException
is
- IOException
public int[][] toClusters()