Skip to content

Commit bb2c1eb

Browse files
committed
Remove the duplicate training sets again, which produces the best results so far.
1 parent 518aa13 commit bb2c1eb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/test/groovy/net/zomis/machlearn/images/MinesweeperScan.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ private static char[][] scanGrid(BufferedImage runImage, ZRect[][] gridLocations
6262
for (Map.Entry<Character, ZPoint> ee : trainingSet.entrySet()) {
6363
int yy = ee.getValue().getY();
6464
int xx = ee.getValue().getX();
65-
for (int y = 4; y <= 4; y += 2) {
66-
for (int x = 4; x <= 4; x += 2) {
67-
networkBuilder = networkBuilder.classify(ee.getKey(), analyze.imagePart(image, xx + x, yy + y));
68-
}
69-
}
65+
networkBuilder = networkBuilder.classify(ee.getKey(), analyze.imagePart(image, xx + 0, yy + 0));
66+
// for (int y = 4; y <= 4; y += 2) {
67+
// for (int x = 4; x <= 4; x += 2) {
68+
// networkBuilder = networkBuilder.classify(ee.getKey(), analyze.imagePart(image, xx + x, yy + y));
69+
// }
70+
// }
71+
7072
}
7173
ImageNetwork network = networkBuilder.classifyNone(analyze.imagePart(image, 0, 0))
7274
.classifyNone(analyze.imagePart(image, 878, 456))

0 commit comments

Comments
 (0)