@Override public void iterationDone(Model model, int iteration) { super.iterationDone(model, iteration); if (openBrowser && firstIteration) { StringBuilder builder = new StringBuilder("http://localhost:").append(UIServer.getInstance().getPort()).append("/"); ///connectionInfo.getFullAddress()); builder.append(subPath).append("?sid=").append(super.getSessionID()); UiUtils.tryOpenBrowser(builder.toString(), log); firstIteration = false; } }
@Override public void iterationDone(Model model, int iteration) { super.iterationDone(model, iteration); if (openBrowser && firstIteration) { StringBuilder builder = new StringBuilder("http://localhost:").append(UIServer.getInstance().getPort()).append("/"); ///connectionInfo.getFullAddress()); builder.append(subPath).append("?sid=").append(super.getSessionID()); UiUtils.tryOpenBrowser(builder.toString(), log); firstIteration = false; } }
public HistogramIterationListener(StatsStorage ssr, int iterations, boolean openBrowser) { super(ssr, null, getUpdateConfiguration(iterations), null, null); int port = -1; try { UIServer server = UIServer.getInstance(); port = server.getPort(); } catch (Exception e) { log.error("Error initializing UI server", e); throw new RuntimeException(e); } UIServer.getInstance().attach(ssr); this.path = "http://localhost:" + port + "/" + subPath; this.openBrowser = openBrowser; System.out.println("UI Histogram URL: " + this.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); }
public HistogramIterationListener(StatsStorage ssr, int iterations, boolean openBrowser) { super(ssr, null, getUpdateConfiguration(iterations), null, null); int port = -1; try { UIServer server = UIServer.getInstance(); port = server.getPort(); } catch (Exception e) { log.error("Error initializing UI server", e); throw new RuntimeException(e); } UIServer.getInstance().attach(ssr); this.path = "http://localhost:" + port + "/" + subPath; this.openBrowser = openBrowser; System.out.println("UI Histogram URL: " + this.path); }
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 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 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); }
String path = "http://localhost:" + uiServer.getPort() + "/flow?sid=" + sessionID; try { UiUtils.tryOpenBrowser(path, log);
String path = "http://localhost:" + uiServer.getPort() + "/flow?sid=" + sessionID; try { UiUtils.tryOpenBrowser(path, log);