};
Matrix input = new DenseMatrix(data_simple);
RBMRenderer renderer = new RBMRenderer();
//Map<Integer, Pair<String, Integer>> map = renderer.generateHistogramBuckets( input, 2 );
Map<Integer, Integer> map = renderer.generateHistogramBuckets( input, 2 );
// for (Map.Entry<Integer, Pair<String, Integer>> entry : map.entrySet()) {
for (Map.Entry<Integer, Integer> entry : map.entrySet()) {
Integer key = entry.getKey();
Integer val = entry.getValue();
//Pair<String, Integer> value = entry.getValue();
//System.out.println(key + " => " + value.getFirst() + ", " + value.getSecond());
System.out.println(key + " => " + key + ", " + val );
}
Integer val_key_0 = map.get(0);
Integer val_key_1 = map.get(1);
assertEquals( 10, val_key_0.intValue() );
assertEquals( 5, val_key_1.intValue() );
renderer.renderHistogram(input, "/tmp/debug_render_rbm_histogram.png", 2);
}