Skip to content

Commit 2c278e8

Browse files
committed
DOC Document script. Gitignore outputs
1 parent 4559ad7 commit 2c278e8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ch12/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.jugdata/

ch12/image-classification.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
from sys import path
1515
path.append('../ch10')
1616

17+
18+
# This is the jug-enabled version of the script ``figure18.py`` in Chapter 10
19+
1720
basedir = '../SimpleImageDataset/'
1821

1922
@TaskGenerator
@@ -72,7 +75,7 @@ def print_results(scores_base, scores_combined):
7275
for fname in images:
7376
haralicks.append(features_for(fname))
7477
sobels.append(edginess_sobel_from_fname(fname))
75-
labels.append(fname[:-len('00.jpg')])
78+
labels.append(fname[:-len('00.jpg')]) # The class is encoded in the filename as xxxx00.jpg
7679

7780
haralicks = to_array(haralicks)
7881
sobels = to_array(sobels)

0 commit comments

Comments
 (0)