Map<String,Object> overlay = new HashMap<>();
overlay.put("a", 1);
overlay.put("b", 2.7);
overlay.put("c", "[3,4]");
overlay.put("d", "[5.3,6.6]");
<BUG>Config config = ConfigUtils.overlayOn(overlay, ConfigUtils.getDefault());
doTest((HyperParamValues<Integer>) HyperParams.fromConfig(config, "a"),
1, Collections.singletonList(1));
doTest((HyperParamValues<Double>) HyperParams.fromConfig(config, "b"),
1, Collections.singletonList(2.7));
doTest((HyperParamValues<Integer>) HyperParams.fromConfig(config, "c"),
2, Arrays.asList(3, 4));
doTest((HyperParamValues<Double>) HyperParams.fromConfig(config, "d"),
2, Arrays.asList(5.3, 6.6));</BUG>
}

Map<String,Object> overlay = new HashMap<>();
overlay.put("a", 1);
overlay.put("b", 2.7);
overlay.put("c", "[3,4]");
overlay.put("d", "[5.3,6.6]");
Config config = ConfigUtils.overlayOn(overlay, ConfigUtils.getDefault());
doTest(HyperParams.fromConfig(config, "a"), 1, Collections.singletonList(1));
doTest(HyperParams.fromConfig(config, "b"), 1, Collections.singletonList(2.7));
doTest(HyperParams.fromConfig(config, "c"), 2, Arrays.asList(3, 4));
doTest(HyperParams.fromConfig(config, "d"), 2, Arrays.asList(5.3, 6.6));
}
