Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from pyspark.ml.classification import LogisticRegression
from pyspark.ml import Pipeline
from sparkdl import DeepImageFeaturizer
featurizer = DeepImageFeaturizer(inputCol="image", outputCol="features", modelName="InceptionV3")
lr = LogisticRegression(maxIter=10, regParam=0.05, elasticNetParam=0.3, labelCol="label")
p = Pipeline(stages=[featurizer, lr])
p_model = p.fit(train_df)
@Faheemkhaskheli

This comment has been minimized.

Copy link

@Faheemkhaskheli Faheemkhaskheli commented Aug 30, 2019

i am getting this error on google colab, i can only install spark 0.2.2 version,
can you help how can i solve this error

from sparkdl import DeepImageFeaturizer
AttributeError: module 'sparkdl' has no attribute 'graph'

@taiwotman

This comment has been minimized.

Copy link

@taiwotman taiwotman commented Sep 26, 2019

I faced a similar issue using Sparkdl. It seems the keras_image.py, where the error comes from, has been modified without the sparkdl graph attribute.
See: keras_image

@shwetamittal019

This comment has been minimized.

Copy link

@shwetamittal019 shwetamittal019 commented Jan 22, 2021

any update on the same. Getting the error
module 'sparkdl' has no attribute 'utils'

while import from sparkdl import DeepImageFeaturizer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment