public class ParameterAveragingTrainingMasterStats extends java.lang.Object implements SparkTrainingStats
ParameterAveragingTrainingMaster
Modifier and Type | Class and Description |
---|---|
static class |
ParameterAveragingTrainingMasterStats.ParameterAveragingTrainingMasterStatsHelper |
DEFAULT_PRINT_FORMAT, PRINT_INDENT
Constructor and Description |
---|
ParameterAveragingTrainingMasterStats(SparkTrainingStats workerStats,
java.util.List<EventStats> parameterAveragingMasterExportTimesMs,
java.util.List<EventStats> parameterAveragingMasterCountRddSizeTimesMs,
java.util.List<EventStats> parameterAveragingMasterBroadcastCreateTimeMs,
java.util.List<EventStats> parameterAveragingMasterFitTimeMs,
java.util.List<EventStats> parameterAveragingMasterSplitTimeMs,
java.util.List<EventStats> parameterAveragingMasterMapPartitionsTimesMs,
java.util.List<EventStats> parameterAveragingMasterAggregateTimesMs,
java.util.List<EventStats> parameterAveragingMasterProcessParamsUpdaterTimesMs,
java.util.List<EventStats> parameterAveragingMasterRepartitionTimesMs) |
Modifier and Type | Method and Description |
---|---|
void |
addOtherTrainingStats(SparkTrainingStats other)
Combine the two training stats instances.
|
boolean |
defaultIncludeInPlots(java.lang.String key)
When plotting statistics, we don't necessarily want to plot everything.
|
void |
exportStatFiles(java.lang.String outputPath,
org.apache.spark.SparkContext sc)
Export the stats as a collection of files.
|
java.util.Set<java.lang.String> |
getKeySet() |
SparkTrainingStats |
getNestedTrainingStats()
Return the nested training stats - if any.
|
java.lang.String |
getShortNameForKey(java.lang.String key)
Return a short (display) name for the given key.
|
java.util.List<EventStats> |
getValue(java.lang.String key)
Get the statistic value for this key
|
java.lang.String |
statsAsString()
Get a String representation of the stats.
|
public static final java.lang.String DEFAULT_DELIMITER
public static final java.lang.String FILENAME_EXPORT_RDD_TIME
public static final java.lang.String FILENAME_COUNT_RDD_SIZE
public static final java.lang.String FILENAME_BROADCAST_CREATE
public static final java.lang.String FILENAME_FIT_TIME
public static final java.lang.String FILENAME_SPLIT_TIME
public static final java.lang.String FILENAME_MAP_PARTITIONS_TIME
public static final java.lang.String FILENAME_AGGREGATE_TIME
public static final java.lang.String FILENAME_PROCESS_PARAMS_TIME
public static final java.lang.String FILENAME_REPARTITION_STATS
public static final java.lang.String PARAMETER_AVERAGING_MASTER_EXPORT_RDD_TIMES_MS
public static final java.lang.String PARAMETER_AVERAGING_MASTER_COUNT_RDD_TIMES_MS
public static final java.lang.String PARAMETER_AVERAGING_MASTER_BROADCAST_CREATE_TIMES_MS
public static final java.lang.String PARAMETER_AVERAGING_MASTER_FIT_TIMES_MS
public static final java.lang.String PARAMETER_AVERAGING_MASTER_SPLIT_TIMES_MS
public static final java.lang.String PARAMETER_AVERAGING_MASTER_MAP_PARTITIONS_TIMES_MS
public static final java.lang.String PARAMETER_AVERAGING_MASTER_AGGREGATE_TIMES_MS
public static final java.lang.String PARAMETER_AVERAGING_MASTER_PROCESS_PARAMS_UPDATER_TIMES_MS
public static final java.lang.String PARAMETER_AVERAGING_MASTER_REPARTITION_TIMES_MS
public ParameterAveragingTrainingMasterStats(SparkTrainingStats workerStats, java.util.List<EventStats> parameterAveragingMasterExportTimesMs, java.util.List<EventStats> parameterAveragingMasterCountRddSizeTimesMs, java.util.List<EventStats> parameterAveragingMasterBroadcastCreateTimeMs, java.util.List<EventStats> parameterAveragingMasterFitTimeMs, java.util.List<EventStats> parameterAveragingMasterSplitTimeMs, java.util.List<EventStats> parameterAveragingMasterMapPartitionsTimesMs, java.util.List<EventStats> parameterAveragingMasterAggregateTimesMs, java.util.List<EventStats> parameterAveragingMasterProcessParamsUpdaterTimesMs, java.util.List<EventStats> parameterAveragingMasterRepartitionTimesMs)
public java.util.Set<java.lang.String> getKeySet()
getKeySet
in interface SparkTrainingStats
SparkTrainingStats.getValue(String)
public java.util.List<EventStats> getValue(java.lang.String key)
SparkTrainingStats
getValue
in interface SparkTrainingStats
key
- Key to get the value forpublic java.lang.String getShortNameForKey(java.lang.String key)
SparkTrainingStats
getShortNameForKey
in interface SparkTrainingStats
key
- Keypublic boolean defaultIncludeInPlots(java.lang.String key)
SparkTrainingStats
defaultIncludeInPlots
in interface SparkTrainingStats
key
- Key to check for default plotting behaviourpublic void addOtherTrainingStats(SparkTrainingStats other)
SparkTrainingStats
addOtherTrainingStats
in interface SparkTrainingStats
other
- Other training stats to returnpublic SparkTrainingStats getNestedTrainingStats()
SparkTrainingStats
getNestedTrainingStats
in interface SparkTrainingStats
public java.lang.String statsAsString()
SparkTrainingStats
SparkTrainingStats.getValue(String)
or export full data via SparkTrainingStats.exportStatFiles(String, SparkContext)
statsAsString
in interface SparkTrainingStats
public void exportStatFiles(java.lang.String outputPath, org.apache.spark.SparkContext sc) throws java.io.IOException
SparkTrainingStats
exportStatFiles
in interface SparkTrainingStats
outputPath
- Base directory to write files tojava.io.IOException