public class ExperimentOutputLayout
extends java.lang.Object
Manages the layouts for experiment output tables. Handles the common columns describing algorithms and data sets, and makes it easier to define new output tables that augment these columns with additional data.
Constructor and Description |
---|
ExperimentOutputLayout(java.util.Set<java.lang.String> dataCols,
java.util.Set<java.lang.String> algoCols) |
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithmColumn(java.lang.String name) |
int |
getConditionColumnCount() |
TableLayout |
getConditionLayout() |
int |
getDataColumn(java.lang.String name) |
TableWriter |
prefixTable(TableWriter base,
DataSet data,
AlgorithmInstance algorithm)
Prefix a table for a particular algorithm and data set.
|
public ExperimentOutputLayout(java.util.Set<java.lang.String> dataCols, java.util.Set<java.lang.String> algoCols)
public TableLayout getConditionLayout()
public int getConditionColumnCount()
public int getDataColumn(java.lang.String name)
public int getAlgorithmColumn(java.lang.String name)
public TableWriter prefixTable(@Nullable TableWriter base, @Nonnull DataSet data, @Nonnull AlgorithmInstance algorithm)
Prefix a table for a particular algorithm and data set.
base
- The table to prefix.data
- The data set to prefix for.algorithm
- The algorithm to prefix for.algorithmInfo
on data
, or null
if base
is null.