Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Decrease the size of the images in the Image and Image_df examples. #350

Merged
merged 2 commits into from
Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/python/nimbusml/examples/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
X = data[['Path']]
y = data[['Label']]

# define the training pipeline
# define the training pipeline
pipeline = Pipeline([
Loader(columns={'ImgPath': 'Path'}),
Resizer(image_width=227, image_height=227,
Resizer(image_width=32, image_height=32,
columns={'ImgResize': 'ImgPath'}),
PixelExtractor(columns={'ImgPixels': 'ImgResize'}),
FastLinearBinaryClassifier(feature='ImgPixels')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# transforms and learners
transform_1 = Loader() << 'Path'
transform_2 = Resizer(image_width=227, image_height=227)
transform_2 = Resizer(image_width=32, image_height=32)
transform_3 = PixelExtractor()
algo = FastLinearBinaryClassifier() << 'Path'

Expand Down