08-01-2022 10:12 AM
the following code...
from sparkdl.xgboost import XgboostRegressor
from pyspark.ml import Pipeline
params = {"n_estimators": 100, "learning_rate": 0.1, "max_depth": 4, "random_state": 42, "missing": 0}
xgboost = XgboostRegressor(**params)
pipeline = Pipeline(stages=[string_indexer, vec_assembler, xgboost])
pipeline_model = pipeline.fit(train_df)
generates the following error...
ImportError: cannot import name 'resnet50' from 'keras.applications' (/local_disk0/.ephemeral_nfs/envs/pythonEnv-d671417d-c26e-4e1b-ab99-6ea93e646ec3/lib/python3.8/site-packages/keras/applications/__init__.py)
i've looked at the modules in keras.applications and as the screenshots show, there is no resnet50, so I think a dependency needs to be updated.
08-01-2022 03:32 PM
@Tobias Cortese I could see you are using the standard DBR version and it is expected. Please use the ML DBR version and it should resolve your issue.
08-01-2022 03:32 PM
@Tobias Cortese I could see you are using the standard DBR version and it is expected. Please use the ML DBR version and it should resolve your issue.
11-22-2022 07:40 AM
11-22-2022 11:12 AM
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group