public class StatsListener extends BaseStatsListener
Stats are collected and passed on to a StatsStorageRouter
- for example, for storage and/or displaying in the UI,
use InMemoryStatsStorage
or FileStatsStorage
.
TYPE_ID
Constructor and Description |
---|
StatsListener(StatsStorageRouter router)
Create a StatsListener with network information collected at every iteration.
|
StatsListener(StatsStorageRouter router,
int listenerFrequency)
Create a StatsListener with network information collected every n >= 1 time steps
|
StatsListener(StatsStorageRouter router,
StatsInitializationConfiguration initConfig,
StatsUpdateConfiguration updateConfig,
java.lang.String sessionID,
java.lang.String workerID) |
Modifier and Type | Method and Description |
---|---|
StatsListener |
clone() |
StatsInitializationReport |
getNewInitializationReport() |
StatsReport |
getNewStatsReport() |
StorageMetaData |
getNewStorageMetaData(long initTime,
java.lang.String sessionID,
java.lang.String workerID) |
getInitConfig, getSessionID, getStorageRouter, getUpdateConfig, getWorkerID, invoke, invoked, iterationDone, onBackwardPass, onEpochEnd, onEpochStart, onForwardPass, onForwardPass, onGradientCalculation, setSessionID, setStorageRouter, setUpdateConfig, setWorkerID
public StatsListener(StatsStorageRouter router)
StatsListener(StatsStorageRouter, int)
with listenerFrequency == 1
router
- Where/how to store the calculated stats. For example, InMemoryStatsStorage
or
FileStatsStorage
public StatsListener(StatsStorageRouter router, int listenerFrequency)
router
- Where/how to store the calculated stats. For example, InMemoryStatsStorage
or
FileStatsStorage
listenerFrequency
- Frequency with which to collect stats informationpublic StatsListener(StatsStorageRouter router, StatsInitializationConfiguration initConfig, StatsUpdateConfiguration updateConfig, java.lang.String sessionID, java.lang.String workerID)
public StatsListener clone()
clone
in interface RoutingIterationListener
clone
in class BaseStatsListener
public StatsInitializationReport getNewInitializationReport()
getNewInitializationReport
in class BaseStatsListener
public StatsReport getNewStatsReport()
getNewStatsReport
in class BaseStatsListener
public StorageMetaData getNewStorageMetaData(long initTime, java.lang.String sessionID, java.lang.String workerID)
getNewStorageMetaData
in class BaseStatsListener