### Question:
AdaDelta extends Optimizer { @Override public String toString() { return "AdaDelta{" + "learningRate=" + learningRate + ", rho=" + rho + ", epsilon=" + epsilon + '}'; } AdaDelta(Graph graph);  AdaDelta(Graph graph, float learningRate);  AdaDelta(Graph graph, float learningRate, float rho, float epsilon);  AdaDelta(Graph graph, String name, float learningRate);  AdaDelta(Graph graph, String name, float learningRate, float rho, float epsilon); @Override String toString(); @Override String getOptimizerName(); static final String ACCUMULATOR; static final String ACCUMULATOR_UPDATE; static final float LEARNING_RATE_DEFAULT; static final float RHO_DEFAULT; static final float EPSILON_DEFAULT; }### Answer:
@Test public void testConstructAdadeltaWithLR() { try (TestSession session = TestSession.createTestSession(tfMode)) { Graph graph = session.getGraph(); AdaDelta opt = new AdaDelta(graph, 1.0F, 0.9F, 1.F); AdaDelta opt2 = new AdaDelta(graph, 0.1F, 0.9F, 1.F); AdaDelta opt3 = new AdaDelta(graph, 0.1F, 0.9F, 1e-8F); String format = "AdaDelta{learningRate=%s, rho=%s, epsilon=%s}"; String optExpected = String.format(format, 1.0F, 0.9F, 1.F); String opt2Expected = String.format(format, 0.1F, 0.9F, 1.F); String opt3Expected = String.format(format, 0.1F, 0.9F, 1e-8F); String optString = opt.toString(); String opt2String = opt2.toString(); String opt3String = opt3.toString(); assertEquals(optExpected, optString); assertEquals(opt2Expected, opt2String); assertEquals(opt3Expected, opt3String); } }