public class J7StatsListener extends BaseStatsListener
StatsListener
but with Java 7 compatibility
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 |
---|
J7StatsListener(StatsStorageRouter router)
Create a StatsListener with network information collected at every iteration.
|
J7StatsListener(StatsStorageRouter router,
int listenerFrequency)
Create a StatsListener with network information collected every n >= 1 time steps
|
J7StatsListener(StatsStorageRouter router,
StatsInitializationConfiguration initConfig,
StatsUpdateConfiguration updateConfig,
java.lang.String sessionID,
java.lang.String workerID) |
Modifier and Type | Method and Description |
---|---|
J7StatsListener |
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 J7StatsListener(StatsStorageRouter router)
J7StatsListener(StatsStorageRouter, int)
with listenerFrequency == 1
router
- Where/how to store the calculated stats. For example, InMemoryStatsStorage
or
FileStatsStorage
public J7StatsListener(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 J7StatsListener(StatsStorageRouter router, StatsInitializationConfiguration initConfig, StatsUpdateConfiguration updateConfig, java.lang.String sessionID, java.lang.String workerID)
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
public J7StatsListener clone()
clone
in interface RoutingIterationListener
clone
in class BaseStatsListener