@Test public void testToString() throws Exception { ExportContainer<VocabWord> container = new ExportContainer<>(new VocabWord(1.0, "word"), Nd4j.create(new double[] {1.01, 2.01, 3.01})); String exp = "word 1.01 2.01 3.01"; String string = container.toString(); assertEquals(exp, string); }
@Override public String toString() { String ars = Arrays.toString(array.data().asFloat()); ars = pattern0.matcher(ars).replaceAll("").trim(); ars = pattern1.matcher(ars).replaceAll(" ").trim(); return element.getLabel().trim() + " " + ars; }
ExportContainer implements Serializable { @Override public String toString() { String ars = Arrays.toString(array.data().asFloat()); ars = pattern0.matcher(ars).replaceAll("").trim(); ars = pattern1.matcher(ars).replaceAll(" ").trim(); return element.getLabel().trim() + " " + ars; } }
ExportContainer implements Serializable { @Override public String toString() { String ars = Arrays.toString(array.data().asFloat()); ars = pattern0.matcher(ars).replaceAll("").trim(); ars = pattern1.matcher(ars).replaceAll(" ").trim(); return element.getLabel().trim() + " " + ars; }  }
ExportContainer implements Serializable { @Override public String toString() { String ars = Arrays.toString(array.data().asFloat()); ars = pattern0.matcher(ars).replaceAll("").trim(); ars = pattern1.matcher(ars).replaceAll(" ").trim(); return element.getLabel().trim() + " " + ars; }  @Override String toString(); }
ExportContainer implements Serializable { @Override public String toString() { String ars = Arrays.toString(array.data().asFloat()); ars = pattern0.matcher(ars).replaceAll("").trim(); ars = pattern1.matcher(ars).replaceAll(" ").trim(); return element.getLabel().trim() + " " + ars; }  @Override String toString();  }