Package org.deeplearning4j.ui.api
Interface UIModule
-
- All Known Implementing Classes:
ConvolutionalListenerModule,DefaultModule,RemoteReceiverModule,SameDiffModule,TrainModule,TsneModule
public interface UIModule
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getCallbackTypeIDs()Get the list of Type IDs that should be collected from the registeredStatsStorageinstances, and passed on to thereportStorageEvents(Collection)method.List<I18NResource>getInternationalizationResources()List<Route>getRoutes()Get a list ofRouteobjects, that specify GET/SET etc methods, and how these should be handled.voidonAttach(StatsStorage statsStorage)Notify the UI module that the givenStatsStorageinstance has been attached to the UIvoidonDetach(StatsStorage statsStorage)Notify the UI module that the givenStatsStorageinstance has been detached from the UIvoidreportStorageEvents(Collection<StatsStorageEvent> events)Whenever theUIServerreceives someStatsStorageEvents from one of the registeredStatsStorageinstances, it will filter these and pass on to the UI module those ones that match one of the Type IDs fromgetCallbackTypeIDs().
Typically, these will be batched together at least somewhat, rather than being reported individually.
-
-
-
Method Detail
-
getCallbackTypeIDs
List<String> getCallbackTypeIDs()
Get the list of Type IDs that should be collected from the registeredStatsStorageinstances, and passed on to thereportStorageEvents(Collection)method.- Returns:
- List of relevant Type IDs
-
getRoutes
List<Route> getRoutes()
Get a list ofRouteobjects, that specify GET/SET etc methods, and how these should be handled.- Returns:
- List of routes
-
reportStorageEvents
void reportStorageEvents(Collection<StatsStorageEvent> events)
Whenever theUIServerreceives someStatsStorageEvents from one of the registeredStatsStorageinstances, it will filter these and pass on to the UI module those ones that match one of the Type IDs fromgetCallbackTypeIDs().
Typically, these will be batched together at least somewhat, rather than being reported individually.- Parameters:
events- List of relevant events (type IDs match one of those fromgetCallbackTypeIDs()
-
onAttach
void onAttach(StatsStorage statsStorage)
Notify the UI module that the givenStatsStorageinstance has been attached to the UI- Parameters:
statsStorage- Stats storage that has been attached
-
onDetach
void onDetach(StatsStorage statsStorage)
Notify the UI module that the givenStatsStorageinstance has been detached from the UI- Parameters:
statsStorage- Stats storage that has been detached
-
getInternationalizationResources
List<I18NResource> getInternationalizationResources()
- Returns:
- List of internationalization resources
-
-