public FlowIterationListener(StatsStorageRouter ssr, int frequency, String sessionID, String workerID, boolean openBrowser) { this.frequency = frequency; this.ssr = ssr; if (sessionID == null) { this.sessionID = UUID.randomUUID().toString(); } else { this.sessionID = sessionID; } if (workerID == null) { this.workerID = UIDProvider.getJVMUID() + "_" + Thread.currentThread().getId(); } else { this.workerID = workerID; } this.openBrowser = openBrowser; if (ssr instanceof StatsStorage && openBrowser) { UIServer.getInstance().attach((StatsStorage) ssr); } System.out.println( "FlowIterationListener path: http://localhost:" + UIServer.getInstance().getPort() + "/flow"); }
nd4jDataTypeName, hostname, UIDProvider.getJVMUID(), envInfo); deviceDescription, UIDProvider.getHardwareUID());
public FlowIterationListener(StatsStorageRouter ssr, int frequency, String sessionID, String workerID, boolean openBrowser) { this.frequency = frequency; this.ssr = ssr; if (sessionID == null) { this.sessionID = UUID.randomUUID().toString(); } else { this.sessionID = sessionID; } if (workerID == null) { this.workerID = UIDProvider.getJVMUID() + "_" + Thread.currentThread().getId(); } else { this.workerID = workerID; } this.openBrowser = openBrowser; if (ssr instanceof StatsStorage && openBrowser) { UIServer.getInstance().attach((StatsStorage) ssr); } System.out.println( "FlowIterationListener path: http://localhost:" + UIServer.getInstance().getPort() + "/flow"); }
public BaseStatsListener(StatsStorageRouter router, StatsInitializationConfiguration initConfig, StatsUpdateConfiguration updateConfig, String sessionID, String workerID) { this.router = router; if (initConfig == null) { this.initConfig = new DefaultStatsInitializationConfiguration(true, true, true); } else { this.initConfig = initConfig; } if (updateConfig == null) { this.updateConfig = new DefaultStatsUpdateConfiguration.Builder().build(); } else { this.updateConfig = updateConfig; } if (sessionID == null) { //TODO handle syncing session IDs across different listeners in the same model... this.sessionID = UUID.randomUUID().toString(); } else { this.sessionID = sessionID; } if (workerID == null) { this.workerID = UIDProvider.getJVMUID() + "_" + Thread.currentThread().getId(); } else { this.workerID = workerID; } }
public ConvolutionalIterationListener(StatsStorageRouter ssr, int iterations, boolean openBrowser, String sessionID, String workerID) { this.ssr = ssr; if (sessionID == null) { //TODO handle syncing session IDs across different listeners in the same model... this.sessionID = UUID.randomUUID().toString(); } else { this.sessionID = sessionID; } if (workerID == null) { this.workerID = UIDProvider.getJVMUID() + "_" + Thread.currentThread().getId(); } else { this.workerID = workerID; } String subPath = "activations"; this.freq = iterations; this.openBrowser = openBrowser; path = "http://localhost:" + UIServer.getInstance().getPort() + "/" + subPath; if (openBrowser && ssr instanceof StatsStorage) { UIServer.getInstance().attach((StatsStorage) ssr); } System.out.println("ConvolutionIterationListener path: " + path); }
public ConvolutionalIterationListener(StatsStorageRouter ssr, int iterations, boolean openBrowser, String sessionID, String workerID) { this.ssr = ssr; if (sessionID == null) { //TODO handle syncing session IDs across different listeners in the same model... this.sessionID = UUID.randomUUID().toString(); } else { this.sessionID = sessionID; } if (workerID == null) { this.workerID = UIDProvider.getJVMUID() + "_" + Thread.currentThread().getId(); } else { this.workerID = workerID; } String subPath = "activations"; this.freq = iterations; this.openBrowser = openBrowser; path = "http://localhost:" + UIServer.getInstance().getPort() + "/" + subPath; if (openBrowser && ssr instanceof StatsStorage) { UIServer.getInstance().attach((StatsStorage) ssr); } System.out.println("ConvolutionIterationListener path: " + path); }