Package adams.data.indexedsplits
Class IndexedSplit
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.data.indexedsplits.IndexedSplit
-
- All Implemented Interfaces:
LoggingSupporter,SizeOfHandler,Serializable
public class IndexedSplit extends LoggingObject
Combines several lists of (named) indices. E.g., for train and test.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_IDthe id of the of this split.protected Map<String,SplitIndices>m_Indicesthe splits.-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description IndexedSplit(int id)Initializes the split.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(SplitIndices indices)Adds the indices (eg for train or test).intgetID()Returns the split ID.Map<String,SplitIndices>getIndices()The current indices.StringtoString()Returns a short textual representation.-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_ID
protected int m_ID
the id of the of this split.
-
m_Indices
protected Map<String,SplitIndices> m_Indices
the splits.
-
-
Method Detail
-
getID
public int getID()
Returns the split ID.- Returns:
- the ID
-
add
public void add(SplitIndices indices)
Adds the indices (eg for train or test).- Parameters:
indices- the indices to add
-
getIndices
public Map<String,SplitIndices> getIndices()
The current indices.- Returns:
- the indices
-
-