Skip to content

mlverse/sparklyr-image-classification-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This package is a sparklyr extension containing all required MVN dependencies and train+test data sets for a sparklyr image classification demo.

The goal of this demo is to leverage Apache Spark and Inception V3 (a pre- trained convolutional neural network for image analysis tasks) to build a scalable Spark ML pipeline capable of classifing images of cats and dogs accurately and efficiently.

The author of this package wishes to acknowledge that the abovementioned sparklyr image classification demo benefited greatly from the availability of the spark-deep-learning library (an open-source Scala library developed by Databricks implementing Inception-V3 and other sophisticated image feature extractors) and the dogs-vs-cats image data set (hosted by Kaggle).

Example usage

library(sparklyr)
library(sparklyr.deeperer)

# NOTE: the correct spark_home path to use depends on the configuration of the
# Spark cluster you are working with.
spark_home <- "/usr/lib/spark"

sc <- spark_connect(master = "yarn", spark_home = spark_home)

run_demo(sc)

Naming

The name of this R package was inspired by the title of this paper.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages