Image-recognition results

Assuming that the image-recognition application ran successfully, you should see the following results output to the console:

Origin

Prediction

planes/plane-005.jpg

1.0

planes/plane-008.jpg

1.0

planes/plane-009.jpg

1.0

planes/plane-016.jpg

1.0

planes/plane-017.jpg

0.0

planes/plane-018.jpg

1.0

birds/bird-005.jpg

0.0

birds/bird-008.jpg

0.0

birds/bird-009.jpg

0.0

birds/bird-016.jpg

0.0

birds/bird-017.jpg

0.0

birds/bird-018.jpg

0.0

The Origin column refers to the absolute filesystem path of the image, and the value in the Prediction column is 1.0 if our model predicts that the object in the image is a plane and 0.0 if our model predicts ...

Get Machine Learning with Apache Spark Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.